A primitive root is a generator of the multiplicative group modulo n. The practical test is to compute the order of the candidate and compare it with Euler phi of the modulus.
⚠Not every modulus has primitive roots. This checker tests a candidate value rather than searching all possible generators.
What Is a Primitive Root?
A primitive root modulo n is a number whose powers generate every invertible residue modulo n. It is a key object in cyclic modular groups.
Generator
Its powers produce all units modulo n.
Order Test
The order must equal phi(n).
Coprime Required
A primitive root must be coprime to n.
Discrete Logs
Primitive roots support discrete logarithm problems.
Example: For g = 2 and n = 9, phi(9)=6 and ord_9(2)=6, so 2 is a primitive root modulo 9.
Free online calculators and tools covering mathematics, unit conversion, text processing, and daily life. Accurate, fast, mobile-friendly, and completely free to use.