OFFSET
1,3
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
n=100, prime(100)=541, prime(100 - Pi(100)) = p(75), p(100) - p(75) = 541 - 379 = 162 = a(100).
MATHEMATICA
Table[Prime[n]-Prime[n-PrimePi[n]], {n, 70}] (* Harvey P. Dale, Apr 23 2016 *)
PROG
(PARI) a(n) = { prime(n) - prime(n - primepi(n)) } \\ Harry J. Smith, Oct 16 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 29 2001
STATUS
approved