I am new to Sagemath, so apologies if this is trivial.
Is there any command to calculate the p-part of any group ? (finite/infinite, abelian/non-abelian). In particular, I am interested in the p-part of the class group. I found the command "sylow_subgroup" but doesn't seem to work. If I have K=CyclotomicField(3) for example and type G=K.class_group and C.sylow_subgroup(5), then I get an error.
Is there an easy way to get around this, or am I doing something wrong?