chickadee » math » primitive-roots

primitive-roots nprocedure
n
integer

Returns a list of all primitive roots of {Un}. The modulus n must be positive.

> (primitive-roots 3)
(2)
> (primitive-roots 5)
(2 3)
> (primitive-roots 6)
(5)