Least primitive root
Suppose is a natural number such that the multiplicative group modulo is cyclic (i.e., is either a prime number, or , or a power of an odd prime, or twice the power of an odd prime). The least primitive root or smallest primitive root modulo is the smallest natural number such that is a primitive root modulo .
Here, we only list equal to a prime or the square of a prime. For something that is a higher power of an odd prime, the smallest primitive root modulo the square of the prime works.
|Smallest primitive root modulo|