OFFSET
0,1
COMMENTS
The number k first occurs in century A186311(k).
REFERENCES
George P. Loweke, The Lore of Prime Numbers. New York: Vantage Press (1982): 91.
LINKS
T. D. Noe, Table of n, a(n) for n = 0..9999
FORMULA
a(n) = pi(100n+99) - pi(100n). - Wesley Ivan Hurt, Oct 03 2013
EXAMPLE
a(3) = 16 because there are 16 primes between 300 and 399 (namely, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397).
a(4) = 17 because there are 17 primes between 400 and 499 (401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499).
MAPLE
with(numtheory); A038822 := n->pi(100*n+99)-pi(100*n); seq(A038822(k), k=0..100); # Wesley Ivan Hurt, Oct 03 2013
MATHEMATICA
Table[PrimePi[100n + 99] - PrimePi[100n], {n, 0, 71}]
Differences[PrimePi[100 Range[0, 100]]] (* Harvey P. Dale, Feb 18 2021 *)
PROG
(PARI) a(n)=sum(i=100*n, 100*n+99, isprime(i)) \\ Charles R Greathouse IV, Apr 28 2015
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
EXTENSIONS
Edited, corrected and extended by Robert G. Wilson v, Jan 29 2003
STATUS
approved