OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
MATHEMATICA
s=0; lst={}; Do[p=Prime[n]; s+=p; If[PrimeQ[s], AppendTo[lst, s]], {n, 2, 7!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jan 28 2009 *)
Select[Accumulate[Prime[Range[2, 500]]], PrimeQ] (* Harvey P. Dale, Mar 14 2011 *)
PROG
(PARI) list(lim)=my(v=List(), s); forprime(p=3, , if((s+=p)>lim, return(Vec(v))); if(isprime(s), listput(v, s))) \\ Charles R Greathouse IV, May 22 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 13 2002
EXTENSIONS
Name simplified by Charles R Greathouse IV, May 22 2017
STATUS
approved