A166363 Number of primes in the half-open interval (n*(log(n))^2..(n+1)*(log(n+1))^2].
0, 2, 2, 1, 3, 1, 2, 3, 2, 2, 3, 2, 2, 4, 1, 2, 3, 3, 3, 3, 2, 2, 5, 2, 3, 4, 1, 3, 3, 3, 4, 3, 3, 3, 4, 3, 3, 4, 1, 3, 3, 5, 3, 4, 4, 3, 3, 3, 4, 3, 3, 4, 4, 4, 2, 3, 4, 3, 3, 4, 5, 3, 5, 4, 2, 3, 3, 6, 2, 4, 5, 3, 2, 2, 3, 6, 3, 6, 3, 4, 4, 6, 3, 4, 3, 4, 4, 4, 2, 3, 6, 3, 3, 2, 6, 5, 2, 6, 3, 5, 3, 2, 5, 4, 4
Offset: 1
Keywords
Links
- Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Prime Gaps.
- Eric Weisstein's World of Mathematics, Cramer-Granville Conjecture.
- Eric Weisstein's World of Mathematics, Shanks Conjecture (and Wolf Conjecture.)
Crossrefs
Programs
-
PARI
a(n)=sum(k=ceil(n*log(n)^2),floor((n+1)*log(n+1)^2), isprime(k)) \\ Charles R Greathouse IV, Aug 21 2015
Formula
a(n) = pi((n+1)*(log(n+1))^2) - pi(n*(log(n))^2) since the intervals are half-open properly.
Extensions
Edited by Daniel Forgues, Oct 18 2009 and Nov 01 2009
Edited by Charles R Greathouse IV, May 13 2010
Comments