OFFSET
1,2
LINKS
Thomas R. Nicely, Some Results of Computational Research in Prime Numbers [See local copy in A007053]
Tomás Oliveira e Silva, Tables of values of pi(x) and of pi2(x)
EXAMPLE
a(2)=4 because there are 4 primes up to 10^2 whose initial digit is 7 (namely 7, 71, 73 and 79).
MATHEMATICA
f[n_] := f[n] = PrimePi[8*10^n] - PrimePi[7*10^n] + f[n - 1]; f[0] = 1; Table[ f[n], {n, 0, 12}]
CROSSREFS
KEYWORD
base,hard,nonn
AUTHOR
Shyam Sunder Gupta, Aug 14 2002
EXTENSIONS
Edited and extended by Robert G. Wilson v, Aug 29 2002
a(20)-a(22) added by David Baugh, Mar 22 2015
STATUS
approved