PPrim
PPrim, also known as the Primitive Root Test, is a method used in number theory to determine if a given integer is a primitive root modulo another integer. A primitive root modulo n is an integer g such that every integer coprime to n is congruent to a power of g modulo n. In simpler terms, the powers of g generate all the numbers that are relatively prime to n.
To apply the PPrim test, let p be a prime number and let g be an integer.
The existence of primitive roots is guaranteed for prime numbers, powers of an odd prime, and twice