The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A120936 Number of primes in the interval [n,n+log(n)]. 3

%I #10 Apr 17 2012 00:06:24

%S 0,1,1,1,1,1,1,0,1,1,2,1,1,0,1,1,2,1,1,0,1,1,1,0,0,1,1,2,2,1,1,0,0,1,

%T 1,1,1,1,1,2,2,1,1,1,1,1,1,0,0,1,1,1,1,0,1,1,2,2,2,1,1,0,1,1,1,1,2,1,

%U 2,2,2,1,1,0,1,1,1,1,2,1,1,1,1,0,1,1,1,1,1,0,0,0,1,1,1,1,2,1,2,2,2,1,2,1,2

%N Number of primes in the interval [n,n+log(n)].

%C Soundararajan states that, on average, there is one prime in the interval [n,n+log(n)] for any number n. See A120934 for the prime n that yield new records.

%H T. D. Noe, <a href="/A120936/b120936.txt">Table of n, a(n) for n = 1..5000</a>

%H K. Soundararajan, <a href="http://www.arXiv.org/abs/math.NT/0606408">The distribution of prime numbers</a>

%t Table[Length[Select[Range[n,n+Log[n]],PrimeQ]], {n,150}]

%o (PARI) a(n)=sum(k=n,n+log(n),isprime(k)) \\ _Charles R Greathouse IV_, Apr 17 2012

%Y Cf. A008407, A020497.

%K nonn

%O 1,11

%A _T. D. Noe_, Jul 21 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 19 14:45 EDT 2024. Contains 372698 sequences. (Running on oeis4.)