OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..180 from Harvey P. Dale)
FORMULA
a(n) = A069496(n) + 2.
EXAMPLE
17 and 19 are twin primes whose sum is 36, a square, so 19 is a term in this sequence.
MATHEMATICA
Transpose[Select[Partition[Prime[Range[200000]], 2, 1], #[[2]]-#[[1]]==2 && IntegerQ[Sqrt[Total[#]]]&]][[2]] (* Harvey P. Dale, Jul 29 2014 *)
PROG
(PARI) g(n) = for(x=1, n, p1=prime(x); p2=prime(x+1); if(p2-p1==2&issquare(p1+p2), print1(p2", ")))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, May 08 2006
STATUS
approved