OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..500
EXAMPLE
311 is in the sequence because 311 is prime, nextprime(311)=313, and 311+313 = 624 = 24*(24+2).
MATHEMATICA
Select[Partition[Prime[Range[9000]], 2, 1], IntegerQ[Sqrt[1+Total[#]]-1]&] [[All, 1]] (* Harvey P. Dale, May 15 2017 *)
PROG
(PARI) {k=2; while(k<10^5, l=nextprime(k+1); if(issquare(k+l+1), print1(k, ", ")); k=l)}
CROSSREFS
KEYWORD
nonn
AUTHOR
Antonio Roldán, May 12 2014
STATUS
approved