OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Prime[Range[500]], EvenQ[PrimitiveRoot[#]]&&PrimitiveRoot[#]!=2&] (* Harvey P. Dale, Jul 31 2015 *)
PROG
(PARI) forprime(n=1, 5000, if((-1)^(lift(znprimroot(n))*(1-isprime(lift(znprimroot(n)))))==1+isprime(lift(znprimroot(n))), print1(n, ", ")))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, May 09 2002
STATUS
approved