OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
1+2=3, 3+2=5, 15+2=17, ..
MATHEMATICA
Select[s=0; Table[n*(n+1)/2, {n, 6!}], PrimeQ[ #+2]&]
Select[Accumulate[Range[300]], PrimeQ[#+2]&] (* Harvey P. Dale, Jun 27 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 11 2009
STATUS
approved