OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
79 is in the sequence because the 79th prime is 401 and phi(401) is 400 = 20^2.
595 is in the sequence because the 595th prime is 4357 and phi(4357) is 4356 = 66^2.
MATHEMATICA
Flatten[Position[Table[IntegerQ[Sqrt[Prime[w]-1]], {w, 1, 25000}], True]]
Flatten[Position[EulerPhi[Prime[Range[8000]]], _?(IntegerQ[Sqrt[#]]&)]] (* Harvey P. Dale, Apr 23 2014 *)
PROG
(PARI) for(n=1, 1600, if(issquare(eulerphi(prime(n))), print(n)))
(PARI) { default(primelimit, 2*10^8); n=m=0; forprime (p=2, 2*10^8, m++; if (issquare(eulerphi(p)), write("b062325.txt", n++, " ", m); if (n==1000, break)) ) } \\ Harry J. Smith, Aug 05 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jason Earls, Jul 05 2001
EXTENSIONS
More terms from Labos Elemer, Jul 09 2001
STATUS
approved