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”).

A000849
Number of primes <= product of first n primes, A002110(n).
21
0, 1, 3, 10, 46, 343, 3248, 42331, 646029, 12283531, 300369796, 8028643010, 259488750744, 9414916809095, 362597750396740, 15397728527812858, 742238179058722891, 40068968501510691894, 2251262473052300960826, 139566579945945392719413
OFFSET
0,3
LINKS
David Baugh, Table of n, a(n) for n = 0..19 (terms n = 18..19 found using Kim Walisch's primecount program).
FORMULA
a(n) = A000720(A002110(n)). - Michel Marcus, Aug 25 2014
MAPLE
seq(numtheory:-pi(mul(ithprime(i), i=1..n)), n=0..10); # Robert Israel, Aug 25 2014
MATHEMATICA
a=1; Table[a=a*Prime[n]; PrimePi[a], {n, 12}]
Join[{0}, PrimePi/@FoldList[Times, Prime[Range[12]]]] (* Harvey P. Dale, Jan 28 2019 *)
PROG
(PARI) t=1; forprime(p=2, 66, print1(primepi(t), ", "); t*=p); \\ Joerg Arndt, Aug 25 2014
(Sage) [prime_pi(sloane.A002110(n)) for n in range (14)] # Giuseppe Coppoletta, Mar 02 2015
CROSSREFS
KEYWORD
nonn,hard
AUTHOR
James D. Ausfahl, gandalf(AT)hrn.office.ssi.net
EXTENSIONS
More terms from David W. Wilson
a(10)-a(13) from Paul Zimmermann
a(14)-a(15) from Donovan Johnson, Mar 01 2010
a(16)-a(17) from Henri Lifchitz, Aug 25 2014
a(18)-a(19) from David Baugh, Sep 29 2020
STATUS
approved