OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
MATHEMATICA
s=0; lst={}; Do[If[PrimeQ[n], NULL, s+=n; If[PrimeQ[s], AppendTo[lst, s]]], {n, 2, 7!}]; lst (* Vladimir Joseph Stephan Orlovsky, Feb 01 2009 *)
PROG
(Python)
from python import isprime
A053872_list, n, m, s = [], 1, 4, 4
while len(A053872_list) < 10000:
if isprime(s):
A053872_list.append(s)
m += 1
if isprime(m):
m += 1
n += 1
s += m # Chai Wah Wu, May 13 2018
(PARI) lista(nn) = {my(s = 0); forcomposite(c=1, nn, s += c; if (isprime(s), print1(s, ", ")); ); } \\ Michel Marcus, May 13 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
G. L. Honaker, Jr., Mar 30 2000
EXTENSIONS
More terms from Reiner Martin, Jul 17 2001
STATUS
approved