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)=1gcd(n,6)=1, where ?n is the order of the cyclic groups and is greater than 1.
How would I go about doing this?
How would I go about doing this?