OFFSET
1,1
EXAMPLE
193 is in the sequence because 193 is prime, nextprime(193) = 197, and (193+197)/2 = 195 = 13*(13+2).
MATHEMATICA
Select[Partition[Prime[Range[6500]], 2, 1], IntegerQ[SolveValues[(k(k+2)) == Mean[#], k][[2]]]&][[All, 1]] (* Harvey P. Dale, Mar 05 2022 *)
PROG
(PARI) {k=2; while(k<10^5, l=nextprime(k+1); if(issquare((k+l)/2+1), print1(k, ", ")); k=l)}
CROSSREFS
KEYWORD
nonn
AUTHOR
Antonio Roldán, May 12 2014
STATUS
approved