cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A275235 Number of primes between n and n+log(n)^2.

Original entry on oeis.org

0, 0, 0, 1, 1, 1, 0, 1, 2, 2, 1, 2, 2, 2, 2, 3, 2, 2, 1, 1, 2, 3, 2, 2, 2, 2, 3, 3, 2, 3, 2, 3, 3, 3, 4, 4, 3, 3, 3, 4, 3, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 4, 4, 5, 5, 4, 4, 3, 4, 4, 4, 4, 5, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 4, 4
Offset: 1

Views

Author

Clark Kimberling, Jul 21 2016

Keywords

Comments

According to Schinzel's formulation of Cramer's conjecture, a(n) > 0 for n > 7; see Guy.

References

  • R. K. Guy, Unsolved Problems in Number Theory, 3rd ed., Springer, 2004, page 11.

Crossrefs

Cf. A000040.

Programs

  • Mathematica
    Table[PrimePi[n + Log[n]^2] - PrimePi[n], {n, 1, 200}]
  • PARI
    a(n) = primepi(n+log(n)^2) - primepi(n) \\ Felix Fröhlich, Jul 21 2016

Formula

a(n) ~ log(n). - Ilya Gutkovskiy, Jul 22 2016