Let p be a prime number. Fermat's little theorem [1] states that a^(p-1) mod p=1 (a hat (^) denotes exponentiation) for all integers a between 1 and p-1. A primitive root [1] of p is a number r such that any integer a between 1 and p-1 can be expressed by a=r^k mod p, with k a nonnegative integer smaller that p-1. If p is an odd prime number then r is a primitive root of p if and only if r^((p-...