OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..175
MATHEMATICA
okQ[list_]:=IntegerQ[Sqrt[First[list]+2Last[list]]];
PrimePi/@Transpose[Select[Partition[Prime[Range[40000]], 2, 1], okQ]][[1]]
(* Harvey P. Dale, Mar 05 2011 *)
PROG
(PARI) for(n=1, 10^6, if(issquare(prime(n)+prime(n+1)*2), print1(n, " ")))
(PARI) { n=0; default(primelimit, 21000000); for (m=1, 10^9, if (issquare(prime(m) + 2*prime(m + 1)), write("b064504.txt", n++, " ", m); if (n==175, break)) ) } \\ Harry J. Smith, Sep 16 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, Oct 06 2001
EXTENSIONS
Offset changed from 0 to 1 by Harry J. Smith, Sep 16 2009
STATUS
approved