OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n=1,...,1000
FORMULA
a(n) = PrimePi( nextprime( prime(n)^2 ) ).
EXAMPLE
100th prime, 541 immediately follows 529, square of 9th prime, a(9)=100.
MATHEMATICA
PrimePi[NextPrime[#]]&/@(Prime[Range[50]]^2) (* Harvey P. Dale, Apr 12 2023 *)
PROG
(PARI) { default(primelimit, 64000000); for (n=1, 1000, write("b062773.txt", n, " ", primepi(nextprime(prime(n)^2))) ) } \\ Harry J. Smith, Aug 10 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 18 2001
EXTENSIONS
OFFSET changed from 0 to 1 by Harry J. Smith, Aug 10 2009
STATUS
approved