OFFSET
0,2
LINKS
Tomás Oliveira e Silva, Tables of values of pi(x) and of pi2(x) [From Donovan Johnson, Apr 25 2010]
FORMULA
EXAMPLE
There are 3 primes less than 6, 7 primes between 6 and 30 and 36 primes between 30 and 210.
MATHEMATICA
Table[ PrimePi[ Product[Prime[i], {i, 1, n}]] - PrimePi[ Product[ Prime[i], {i, 1, n - 1}]], {n, 1, 12}]
Join[{1}, Differences[PrimePi/@Rest[FoldList[Times, 1, Prime[Range[12]]]]]] (* Harvey P. Dale, Mar 16 2012 *) (* Mathematica's implementation of PrimePi will not work for the 13th primorial because it's too large *)
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Stephan Wagler (stephanwagler(AT)aol.com), Jul 05 2002
EXTENSIONS
Edited by Robert G. Wilson v, Jul 08 2002
a(13)-a(14) from Donovan Johnson, Apr 25 2010
a(15)-a(18) calculated using the data at A000849 and added by Amiram Eldar, Jun 11 2024
STATUS
approved