Possible Duplicate:
Finding a primitive root of a prime number
Is there a way to determine the primitive element of $Zp$ ? (where p is a prime) If there is no general method, then I would also like to know if this is possible for special types of primes
Thank you