OFFSET
1,2
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = pi(A071150(n)). - Charles R Greathouse IV, May 13 2015
MAPLE
Primes:= select(isprime, [seq(2*i+1, i=1..10^4)]):
L:= ListTools:-PartialSums(Primes):
select(i -> isprime(L[i]), [$1..nops(L)]); # Robert Israel, May 19 2015
MATHEMATICA
Position[Accumulate@ Prime@ Range[2, 750], _?(PrimeQ@# &)] // Flatten (* Robert G. Wilson v, May 19 2015, after Harvey P. Dale in A013916 *)
PROG
(PARI) s=n=0; forprime(p=3, 1e4, n++; if(isprime(s+=p), print1(n", "))) \\ Charles R Greathouse IV, May 13 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 13 2002
STATUS
approved