I want to write some GAP code that prints finite abelian groups that are the direct product of two cyclic groups. However, I want the order of the cyclic groups to have the condition that the gcd(,6)=1, where is the order of the cyclic groups and is greater than 1.
How would I go about doing this?
Is this what your looking for?
It prints the group id from the library SmallGrp, see also the function StructureDescription(G);