OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
4th prime is 7, twice the 4th prime is 14, the greatest prime < 14 is 13 that is the 6th prime, hence, a(4) = 6. - Bernard Schott, Feb 02 2020
MATHEMATICA
PrimePi[NextPrime[#, -1]]&/@(2Prime[Range[70]]) (* Harvey P. Dale, Jul 05 2012 *)
PROG
(PARI) a(n) = primepi(2*prime(n)); \\ Michel Marcus, Oct 25 2017; Feb 02 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved