OFFSET
1,2
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = primepi(A096478(n)). - Amiram Eldar, Aug 13 2024
EXAMPLE
24 is a term since prime(prime(24)+1) - prime(prime(24)) = prime(89+1) - prime(89) = 463 - 461 = 2.
MATHEMATICA
Flatten[Position[Table[Prime[Prime[n]+1]-Prime[Prime[n]], {n, 1, 1000}], 2]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jun 23 2004
STATUS
approved