login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A061568
Number of primes <= sum of first n primes.
3
1, 3, 4, 7, 9, 13, 16, 21, 25, 31, 37, 45, 51, 60, 66, 75, 85, 95, 103, 115, 127, 138, 150, 162, 177, 191, 205, 219, 233, 250, 267, 283, 300, 319, 338, 360, 376, 400, 421, 441, 461, 481, 509, 531, 557, 578, 602, 630, 653, 684, 707, 737, 765, 793, 825, 853, 884
OFFSET
1,2
LINKS
FORMULA
a(n) = A000720(A007504(n)). - Michel Marcus, Jul 02 2018
MATHEMATICA
PrimePi/@FoldList[Plus, 0, Prime[Range[50]]]//Rest
PROG
(PARI) { default(primelimit, 3682913); n=0; s=0; forprime (p=2, prime(1000), s+=p; write("b061568.txt", n++, " ", primepi(s)) ) } \\ Harry J. Smith, Jul 24 2009
(PARI) a(n) = primepi(sum(k=1, n, prime(k))); \\ Michel Marcus, Jul 02 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Harvey P. Dale, May 18 2001
STATUS
approved