Erdős problems #385 and #463 for almost all integers

Primarily AI-generated textHuman understanding: no partsmath.NT — Number Theory

Contributed by Meng Tong

Version 2 / Dec 01, 2026 / CC BY 4.0

Abstract

For composite mm let p(m)p(m) denote its least prime factor, and let F(n)F(n) be the maximum of m+p(m)m+p(m) over composite m<nm<n. It is an open problem of Erdős whether F(n)>nF(n)>n for all large nn, and whether F(n)−n→∞F(n)-n\to\infty; trivially F(n)<n+nF(n)<n+\sqrt n. We show that for every κ,A>0\kappa,A>0, all but O(N(log⁡N)−A)O(N(\log N)^{-A}) integers n≤Nn\le N satisfy F(n)−n>(1−(log⁡n)−κ)nF(n)-n>(1-(\log n)^{-\kappa})\sqrt n. Similarly, for almost all nn there is a composite mm with n+(1−o(1))n<m<n+p(m)n+(1-o(1))\sqrt n<m<n+p(m), and n−min⁡m>n(m−p(m))=(1+o(1))nn-\min_{m>n}(m-p(m))=(1+o(1))\sqrt n, the minimum being over composite mm. The leading constant 11 is optimal in each case. These are almost-all versions of Problems #385 and #463 in Bloom's list of Erdős problems; the versions for all large nn remain open. The proof bounds the variance of short-interval counts of products pqpq with pp slightly below n\sqrt n, using a pointwise bound for prime sums at scale n\sqrt n and the mean value theorem for Dirichlet polynomials.

Author comments: Version 2 (11 pages). Adds a discussion of the independent, slightly earlier work of A. K. Malek (research note of 26 November 2026, revised 1 December 2026, with a Lean development), who proved F(n) = n + (1+o(1))√n for almost all n; notes the consequence of Gafni–Tao for F(n) > n; adds the reference Erdős–Graham (1980), p. 74, and the computations reported in the erdosproblems.com forum. The mathematical content is unchanged.

Provenance statement

The statements and proofs, the computer programs used in Section 8, the literature search and the text were generated by Anthropic's Claude, used through Claude Code, under the direction of the author. The proof and the numerical results were checked by AI models, including fresh instances of the model that wrote the paper. At the time of submission, no human referee has checked the proof. See also the "Statement on the use of AI" at the end of the paper.

Tools used

Anthropic
Claude OpusVersion 5.5

References

  1. T. F. Bloom, Erdős problems , https://www.erdosproblems.com, Problems #385 and #463, including the forum comments on #385 by L. Jack (3 September 2026) and Aleksanndr_NFA (23 September 2026) (accessed 1 December 2026).link
  2. H. Davenport, Multiplicative Number Theory , 3rd ed., revised and with a preface by H. L. Montgomery, Grad. Texts in Math. 74, Springer-Verlag, New York, 2000.
  3. Erdős Problem a Day (P. White, with Claude), Erdős Problem #385: Composite mm plus least prime factor --- working report , https://www.erdosproblemaday.com/report/385 (accessed 1 December 2026).link
  4. Erdős Problem a Day (P. White, with Claude), Erdős Problem #463: Composite mm with n+f(n)<m<n+p(m)n+f(n)<m<n+p(m) --- working report , https://www.erdosproblemaday.com/report/463 (accessed 1 December 2026).link
  5. P. Erdős, Some unconventional problems in number theory , Acta Math. Acad. Sci. Hungar. 33 (1979), no. 1--2, 71--80. DOI 10.1007/BF01903382.DOI
  6. P. Erdős and R. L. Graham, Old and new problems and results in combinatorial number theory , Monographies de L'Enseignement Mathématique 28, Université de Genève, Geneva, 1980.
  7. P. Erdős, Some unsolved problems in geometry, number theory and combinatorics , Eureka (1992), 44--48. Cited as in Bloom .
  8. A. Gafni and T. Tao, Rough numbers between consecutive primes , arXiv:2508.06463, 2025.arXiv
  9. A. Henriksson (contributor), Balanced semiprimes in short intervals under the Riemann hypothesis , Hexagon preprint, hexagon:2611.00808v1, 2026.hexagon
  10. M. N. Huxley, On the difference between consecutive primes , Invent. Math. 15 (1972), no. 2, 164--170.
Show all 18 referencesShow fewer references
  1. H. Iwaniec and E. Kowalski, Analytic Number Theory , Amer. Math. Soc. Colloq. Publ. 53, American Mathematical Society, Providence, RI, 2004.
  2. A. K. Malek, Erdős Problems #385 and #430: the size of F(n)−nF(n)-n for almost all nn , research note, 26 November 2026, revised 1 December 2026, https://github.com/Aafimalek/novel-discoveries (folder erdos-385-430 ); Lean development at https://github.com/Aafimalek/erdos-385-almost-all.link
  3. K. Matomäki and M. Radziwiłł, Multiplicative functions in short intervals , Ann. of Math. (2) 183 (2016), no. 3, 1015--1056. DOI 10.4007/annals.2016.183.3.6.DOI
  4. K. Matomäki, M. Radziwiłł and T. Tao, Correlations of the von Mangoldt and higher divisor functions I. Long shift ranges , Proc. Lond. Math. Soc. (3) 118 (2019), no. 2, 284--350. DOI 10.1112/plms.12181; arXiv:1707.01315. Equation and lemma numbers refer to arXiv:1707.01315v3.arXivDOI
  5. H. L. Montgomery and R. C. Vaughan, Hilbert's inequality , J. London Math. Soc. (2) 8 (1974), no. 1, 73--82. DOI 10.1112/jlms/s2-8.1.73.DOI
  6. The On-Line Encyclopedia of Integer Sequences, https://oeis.org, sequences A322292 and A322293 (M. Marcus) and A401176 (S. Manyama) (accessed 1 December 2026).link
  7. T. Tao, Erdos problem #385, the parity problem, and Siegel zeroes , blog post, 19 August 2024, including the comments, https://terrytao.wordpress.com/2024/08/19/erdos-problem-385-the-parity-problem-and-siegel-zeroes/.link
  8. X. Zhang, On the sum of least prime factors in short intervals , arXiv:2608.24930v2, 2026.arXiv

Version history

  1. v1 · 10 pagesSubmitted by Meng Tong10 pages. Almost-all versions of Erdős problems #385 and #463 with the sharp leading constant.SupersededNov 30, 2026
  2. v2 · 11 pagesSubmitted by Meng TongVersion 2 (11 pages). Adds a discussion of the independent, slightly earlier work of A. K. Malek (research note of 26 November 2026, revised 1 December 2026, with a Lean development), who proved F(n) = n + (1+o(1))√n for almost all n; notes the consequence of Gafni–Tao for F(n) > n; adds the reference Erdős–Graham (1980), p. 74, and the computations reported in the erdosproblems.com forum. The mathematical content is unchanged.CurrentDec 01, 2026