OFFSET
0,2
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 0..40
EXAMPLE
a(2)=11 because 1, 4, 8, 9, 16, 25, 27, 32, 49, 64 & 81 are the only prime powers less than 100.
MATHEMATICA
f[n_] := Block[{t = 1, k = 2}, While[s = PrimePi[10^(n/k)]; s != 0, t = t + s; k++ ]; t]; Table[ f[n], {n, 0, 27}]
PROG
(PARI) a(n)=my(N=10^n); sum(k=2, logint(N, 2), primepi(sqrtnint(N, k)))+1 \\ Charles R Greathouse IV, Jul 21 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Oct 29 2002
EXTENSIONS
a(16)-a(27) from David Wasserman, Mar 13 2005
a(23) corrected by Charles R Greathouse IV, Jul 21 2017
STATUS
approved