OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..6541
EXAMPLE
For n=1, there is only one prime in range prime(1)*prime(2) .. prime(2)^2, [6 .. 9], namely 7, thus a(1) = 1.
For n=2, the primes in range prime(2)*prime(3) .. prime(3)^2, [15 .. 25] are {17, 19, 23}, thus a(2) = 3.
MATHEMATICA
Table[Count[Range[Prime[n] Prime[n + 1], Prime[n + 1]^2], _?PrimeQ], {n, 69}] (* Michael De Vlieger, Mar 30 2015 *)
Table[PrimePi[Prime[n+1]^2]-PrimePi[Prime[n]Prime[n+1]], {n, 70}] (* Harvey P. Dale, Jul 31 2021 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 30 2015
STATUS
approved