Given a prime number p and a potential root of b, this determines if b is a primitive root of p.

This calculator has 2 inputs.

This calculator has 2 inputs.

- modulus
- the remainder of a division, after one number is divided by another.

a mod b - prime number
- a natural number greater than 1 that is not a product of two smaller natural numbers.
- primitive root
- if every number a coprime to n is congruent to a power of g modulo n