Skip to main content

PrimitiveRoot

PrimitiveRoot[n] gives a primitive root of n.

PrimitiveRoot[n,k] gives the smallest primitive root of n greater than or equal to k.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.