A345755 a(n) is the number of primes p satisfying n*(log_2(n))^2 < p <= (n+1)*(log_2(n+1))^2.
1, 3, 2, 3, 3, 4, 4, 4, 5, 3, 4, 4, 6, 3, 5, 7, 3, 4, 6, 5, 5, 7, 5, 3, 6, 6, 7, 6, 4, 6, 5, 7, 5, 6, 5, 6, 7, 6, 8, 4, 6, 6, 9, 3, 5, 7, 9, 5, 7, 9, 4, 7, 7, 5, 7, 6, 5, 9, 7, 8, 3, 7, 8, 8, 8, 6, 4, 7, 6, 8, 10, 7, 8, 7, 6, 7, 6, 6, 6, 7, 7, 10, 4, 8, 9, 7
Offset: 1
Keywords
Examples
a(10) is the number of primes > 110.35 and <= 131.64. a(10) = 3, because the primes in this interval are 113, 127, and 131.
Links
- Hal M. Switkay, Table of n, a(n) for n = 1..2772
- Wikipedia, Cramér's conjecture
Programs
-
Mathematica
Differences @ Table[PrimePi[n*Log2[n]^2], {n, 1, 100}] (* Amiram Eldar, Jun 27 2021 *)
-
PARI
f(n) = n*(log(n)/log(2))^2; a(n) = primepi(f(n+1)) - primepi(f(n)); \\ Michel Marcus, Jun 30 2021
Comments