Dual View Random Solved Random Open
OPEN This is open, and cannot be resolved with a finite computation.
Let $d_n=p_{n+1}-p_n$, where $p_n$ is the $n$th prime. Prove that\[\sum_{1\leq n\leq N}d_n^2 \ll N(\log N)^2.\]
Disclaimer: The open status of this problem reflects the current belief of the owner of this website. There may be literature on this problem that I am unaware of, which may partially or completely solve the stated problem. Please do your own literature search before expending significant effort on solving this problem. If you find any relevant literature not mentioned here, please add this in a comment.
Cramer [Cr36] proved an upper bound of $O(N(\log N)^4)$ conditional on the Riemann hypothesis. Selberg [Se43] improved this slightly (still assuming the Riemann hypothesis) to\[\sum_{1\leq n\leq N}\frac{d_n^2}{n}\ll (\log N)^4.\]The prime number theorem immediately implies a lower bound of\[\sum_{1\leq n\leq N}d_n^2\gg N(\log N)^2.\]The values of the sum are listed at A074741 on the OEIS.

This is discussed in problem A8 of Guy's collection [Gu04].

View the LaTeX source

This page was last edited 28 October 2025.

External data from the database - you can help update this
Formalised statement? Yes
Related OEIS sequences: A074741
Likes this problem None
Interested in collaborating None
Currently working on this problem None
This problem looks difficult None
This problem looks tractable None

Additional thanks to: Dogmachine and Terence Tao

When referring to this problem, please use the original sources of Erdős. If you wish to acknowledge this website, the recommended citation format is:

T. F. Bloom, Erdős Problem #233, https://www.erdosproblems.com/233, accessed 2026-01-16