OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Harry J. Smith)
FORMULA
EXAMPLE
a(4) = 283, the next prime is 293 and 283 + 293 = 576 = 24^2.
MATHEMATICA
Transpose[Select[Partition[Prime[Range[20000]], 2, 1], IntegerQ[Sqrt[Plus@@# ]]&]][[1]] (* Harvey P. Dale, Aug 04 2009 *)
PROG
(PARI) { default(primelimit, 550655327); n=0; q=2; forprime (p=3, 550655327, if (issquare(p+q), write("b061275.txt", n++, " ", q)); q=p ) } \\ Harry J. Smith, Jul 20 2009
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, Apr 25 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org) and Asher Auel, May 15 2001
Offset changed from 0 to 1 by Harry J. Smith, Jul 20 2009
STATUS
approved