%I #15 Mar 31 2014 05:06:27
%S 7,11,17,19,23,29,47,59,73,97,101,103,109,131,137,139,149,167,179,193,
%T 229,233,257,263,269,331,349,353,383,389,421,433,461,463,491,499,503,
%U 509,541,571,577,593,607,617,619,659,661,673,701,709,727,743,829,857,859,863
%N Primes with primitive root 40.
%H Vincenzo Librandi, <a href="/A019365/b019365.txt">Table of n, a(n) for n = 1..1000</a>
%H <a href="/index/Pri#primes_root">Index entries for primes by primitive root</a>
%t pr=40; Select[Prime[Range[200]], MultiplicativeOrder[pr, # ] == #-1 &]
%K nonn
%O 1,1
%A _David W. Wilson_