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!)
A364459 Number of primes in the interval [n,n+log(n)^2]. 1
0, 1, 1, 1, 2, 1, 1, 1, 2, 2, 2, 2, 3, 2, 2, 3, 3, 2, 2, 1, 2, 3, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 3, 3, 4, 4, 3, 3, 2, 3, 3, 4, 3, 3, 3, 3, 4, 4, 3, 4, 4, 5, 5, 5, 4, 4, 4, 4, 4, 4, 5, 5, 4, 4, 4, 5, 4, 4, 3, 3, 3, 3, 3, 4, 3, 3, 4, 4, 4, 4, 4, 4, 5, 6, 5, 5, 5, 6, 6, 6, 6, 6, 5, 5, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
On average, there are log(n) primes in the interval [n,n+log(n)^2] for any number n.
LINKS
MAPLE
a:= n-> add(`if`(isprime(i), 1, 0), i=n..floor(n+log(n)^2)):
seq(a(n), n=1..100); # Alois P. Heinz, Jul 25 2023
PROG
(PARI) for(n=2, 100, An=primepi(n+(log(n))^2)-primepi(n-1); print1(An, ", "))
CROSSREFS
Sequence in context: A085031 A341974 A029342 * A230772 A029408 A029415
KEYWORD
nonn
AUTHOR
Alain Rocchelli, Jul 25 2023
STATUS
approved

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 July 9 07:13 EDT 2024. Contains 374172 sequences. (Running on oeis4.)