OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(2)=13 because prime[2]=3 and 3+(1+2+3+4)=3+10=13 is a prime.
MATHEMATICA
Table[SelectFirst[Prime[n]+Accumulate[Range[20]], PrimeQ], {n, 60}] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 11 2019 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Jun 29 2003
STATUS
approved