OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n=1..1000
FORMULA
a(n) = pi( 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) a(n) = { primepi(prime(n)^2) + 1 } \\ Harry J. Smith, Aug 10 2009
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Labos Elemer, Jul 18 2001
EXTENSIONS
Offset changed from 0 to 1 by Harry J. Smith, Aug 10 2009
STATUS
approved