ERDŐS/DAILY

← back to the ledger

ERDőS #852 · PARTIAL

Erdős problem #852 — live-page audit, repaired analytic bounds, and an exact computation

Access/check date: 2026-07-27 (UTC).

Claim labels used throughout:

Result in one paragraph

(b) The April 2026 note of Przemek Chojecki does give

\[ h(x)\gg(\log x)^{1/3} \]

after two harmless repairs spelled out below. Thus the first “in particular” question has an affirmative answer (for example, any exponent \(c<1/3\) works eventually), modulo the published Selberg-sieve and average-singular-series results cited in the note. (b) The best upper bound I could verify is

\[ h(x)\ll_\varepsilon x^{41/100+\varepsilon}, \]

conditional only on using Theorem 1 of Stadlmann's arXiv preprint as a named theorem. (d) Independently, a from-scratch segmented sieve determined the exact record frontier for every start \(n\le 105{,}000{,}000\), proving in particular

\[ h(100{,}000{,}000)=25,\qquad h(105{,}000{,}001)=26. \]

It also found a concrete correction to the forum's “inverse OEIS” description: \(h\) jumps from \(13\) directly to \(15\) at start \(n=19{,}205\), so \(h(x)\) never equals \(14\).

0. Mandatory live-page check

I fetched the rendered live page and its discussion through the Bright Data browser path, not direct curl.

Live observations:

Verbatim live-page statement

> Let \(d_n=p_{n+1}-p_n\), where \(p_n\) is the \(n\)th prime. Let \(h(x)\) be maximal such that for some \(n

> \[ > h(x) >(\log x)^c > \]

> for some constant \(c>0\), and

> \[ > h(x)=o(\log x)? > \]

The only result in the problem body is: “Brun's sieve implies \(h(x)\to\infty\) as \(x\to\infty\).”

Sources:

What the six comments say

The site warns that comments are not verified. I therefore treated every item below as a lead, not as ground truth.

1. Przemek Chojecki (24 Apr 2026) linked a six-page note claiming (b) \(h(x)\gg(\log x)^{1/3}\), and reported a non-rigorous/conditional linear-log model.

2. David Turturean (24 Apr 2026) reported the same exponent via a four-prime rectangle count, an iid geometric-gap saddle-point model, and a conditional uniform Hardy–Littlewood/Bonferroni approach. Those linear-log assertions remain (c) here.

3. Nat Sothanaphan reported that an automated check found two minor issues in Chojecki's note.

4. Aron Bhalla (15 Apr 2026) sketched (b) \(h(x)\ll_\varepsilon x^{0.41+\varepsilon}\) using Stadlmann's mean-square prime-gap theorem.

5. Nat Sothanaphan reported no issue with that upper-bound sketch.

6. Boris Alexeev (23 Dec 2025) observed that OEIS A078515 “seems” to be the inverse of \(h\). The exact computation below shows that this needs a generalized-inverse qualification.

No comment was marked as a claimed proof, and no user was marked as currently working.

1. Primary-source and literature audit

Sources actually opened and checked

1. Original source. P. Erdős, “On some of my problems in number theory I would most like to see solved,” Number Theory, Ootacamund 1984, LNM 1122 (1985), 74–84:

https://users.renyi.hu/~p_erdos/1985-17.pdf

Page 79 contains this problem, the Brun-method observation, the expected power of \(\log x\), and Erdős's statement that he would not be surprised by \(h(x)/\log x\to0\).

2. Current lower-bound manuscript. P. Chojecki, “A Power Lower Bound for Runs of Distinct Prime Gaps,” dated 24 Apr 2026:

https://www.ulam.ai/research/erdos852.pdf

Theorem 1 states \(h(x)\gg(\log x)^{1/3}\).

3. Published sieve input. J. D. Lichtman and J. Teräväinen, “On the Hardy–Littlewood–Chowla conjecture on average,” Forum of Mathematics, Sigma 10 (2022), e57:

https://arxiv.org/abs/2111.08912

I checked Lemma 2.3 (the Selberg upper-bound sieve for fixed prime tuples) and Corollary 2.6 (mean singular-series bound for fixed bounded-coefficient affine families). Their hypotheses cover the actual families \((r,m)=(5,3),(4,2),(4,2),(3,1)\) used here.

4. Mean-square input. J. Stadlmann, “On the mean square gap between primes,” arXiv:2212.10867v1 (2022):

https://arxiv.org/abs/2212.10867

Theorem 1 states, for every fixed \(\eta>0\),

\[ \sum_{p_m\le X}(p_{m+1}-p_m)^2\ll_\eta X^{1.23+\eta}. \]

I found no journal publication; I therefore identify this explicitly as a preprint theorem.

5. Sequence definitions.

https://oeis.org/A053597

https://oeis.org/A078515

For reproducibility, the downloaded PDFs had SHA-256 hashes

Chojecki:              20c516984f9228ea84d6d786e50598d86e10ae55a0590ce5998cf271490a81b6
Erdos 1985:            0df03d681ed19c7ad73c2b82df6b2b5edeb7cfefb232dcbcf3e29b25bc22435e
Lichtman--Teravainen:  87410676f879ac750cc23e4e0703e073e8b8f459a3cde2d85b6a0c8468464014
Stadlmann:             ed436f7c46f37bfa41dde55ac13fadf2420f6e109e201b692f7e93f289831859

Exact-phrase searches for the defining statement and searches for “distinct consecutive prime gaps” on the web/arXiv found the live problem, Chojecki's note, and unrelated prime-gap papers, but no earlier paper proving a power of \(\log x\) for this problem. This is an honest search miss, not a priority claim: I did not have subscription access to a complete MathSciNet/Zentralblatt search.

2. Audit and repair of the \((\log x)^{1/3}\) lower bound

This section is (b): elementary reductions plus the prime-tuple upper-bound sieve and affine singular-series average in Lichtman–Teräväinen.

Let

\[ M=\pi(N),\quad L=\log N,\quad H=\lfloor\eta L^{1/3}\rfloor, \quad Y=AHL, \]

where \(A\) is a sufficiently large fixed constant and then \(\eta>0\) is sufficiently small.

For \(1\le n\le M-H\), put

\[ S_n=p_{n+H}-p_n=\sum_{j=0}^{H-1}d_{n+j}. \]

Every gap \(d_m\), \(m\le M-1\), occurs in at most \(H\) of these sums, so

\[ \sum_{n\le M-H}S_n \le H\sum_{m\le M-1}d_m =H(p_M-p_1)\le HN. \]

Consequently

\[ \#\{n\le M-H:S_n>Y\}\le \frac{HN}{Y}=\frac{N}{AL}. \]

The prime number theorem gives \(M\sim N/L\); after choosing \(A\) large, there are at least \(c_1N/L\) “short” starts with \(S_n\le Y\).

Suppose such a block is bad. Choose a repeated pair

\[ d_{n+i}=d_{n+j}=q,\qquad 0\le icanonically (say lexicographically first), and put

\[ a=p_{n+i}-p_n,\qquad b=p_{n+j}-p_n. \]

Then

\[ p_n,\ p_n+a,\ p_n+a+q,\ p_n+b,\ p_n+b+q \]

are prime, and every offset is at most \(Y\). Choosing the collision canonically makes the map from a bad start to its witness single-valued; the first prime \(p_n\) determines \(n\), so counting witnesses bounds bad starts.

For fixed distinct shifts \(h_1,\ldots,h_r\), the Selberg upper-bound sieve gives

\[ \#\{m\le N:m+h_1,\ldots,m+h_r\in\mathbb P\} \ll_r 1+\frac{\mathfrak S(\{h_1,\ldots,h_r\})N}{L^r}. \]

The additive \(1\) handles inadmissible tuples: a solution must make one of the finitely many shifted values equal the obstructing small prime. Corollary 2.6 of Lichtman–Teräväinen gives, for every fixed bounded-coefficient affine family in \(s\) parameters,

\[ \sum_{\mathbf u\in[0,Y]^s} \mathfrak S(\{L_1(\mathbf u),\ldots,L_r(\mathbf u)\}) \ll Y^s. \]

There are four cases.

  • Generic: \(a>0\) and \(b\ne a+q\). The five shifts

\(0,a,a+q,b,b+q\) are distinct, giving

\[ O\!\left(Y^3+\frac{NY^3}{L^5}\right). \]

  • \(a=0,\ b\ne q\): use \(0,q,b,b+q\), giving

\[ O\!\left(Y^2+\frac{NY^2}{L^4}\right). \]

  • \(a=0,\ b=q\): use \(0,q,2q\), giving

\[ O\!\left(Y+\frac{NY}{L^3}\right). \]

  • \(a>0,\ b=a+q\): use \(0,a,a+q,a+2q\), again giving

\[ O\!\left(Y^2+\frac{NY^2}{L^4}\right). \]

Thus the number \(B\) of bad short starts satisfies

\[ B\ll Y^3+\frac{NY^3}{L^5} +Y^2+\frac{NY^2}{L^4} +Y+\frac{NY}{L^3}. \]

Substituting \(Y=AHL\) and \(H\le\eta L^{1/3}\) gives

\[ \frac{NY^3}{L^5}\le A^3\eta^3\frac NL,\qquad \frac{NY^2}{L^4}\le A^2\eta^2\frac N{L^{4/3}},\qquad \frac{NY}{L^3}\le A\eta\frac N{L^{5/3}}, \]

while \(Y^3+Y^2+Y=O_A(L^4)=o(N/L)\). Choose \(\eta\) so that the first constant is smaller than (say) \(c_1/2\); then \(B

The two required repairs

1. Chojecki's Lemma 4 says \(Y\le N\), but some displayed shifts can be \(2Y\). State \(2Y\le N\), or apply the sieve with ambient parameter \(2N\). In the application \(Y=O((\log N)^{4/3})=o(N)\), so this changes nothing.

2. From \(H=\lfloor\eta_0L^{1/3}\rfloor\) one gets

\(H\ge(\eta_0/2)L^{1/3}\) for large \(N\), not literally

\(H\ge\eta_0L^{1/3}\). Rename the final constant \(\eta=\eta_0/2\).

The note's general affine-family lemma also states more than the cited corollary when the number of forms is smaller than the parameter dimension. This is irrelevant to the proof because all four actual applications have \(r\ge m\); alternatively one can pad with repeated forms.

After these repairs,

\[ h(\pi(N))\gg(\log N)^{1/3}. \]

Taking \(N=p_{\lfloor x\rfloor}\), using \(p_m\sim m\log m\), and monotonicity of \(h\) yields

\[ \boxed{h(x)\gg(\log x)^{1/3}}. \]

In particular, for every fixed \(c<1/3\),

\[ h(x)>(\log x)^c \]

for all sufficiently large \(x\). I found no remaining uniformity or finiteness gap in this argument.

Why this particular method stops at \(1/3\)

(a) If \(H=L^\alpha\), then \(Y\asymp L^{1+\alpha}\), and the generic witness bound is

\[ \frac{NY^3}{L^5}\asymp N L^{3\alpha-2}. \]

The supply of starts is \(\asymp N/L\). Hence this comparison works only for

\(\alpha<1/3\), or at the endpoint \(\alpha=1/3\) with a sufficiently small constant.

The four-prime rectangle version has a factor \(H\) for the number of starting blocks containing a rectangle and gives the same \(NH^3/L^2\) balance. Improving the exponent by this route requires exploiting information discarded here—most naturally, that the equal gaps contain no intermediate primes.

3. Audit of the \(x^{0.41+\varepsilon}\) upper bound

This section is (b) modulo Stadlmann's Theorem 1.

Let \(H=h(x)\), witnessed by a start \(n \[ \sum_{j=0}^{H-1}d_{n+j}\ge 1+2+4+\cdots+2(H-1)=H^2-H+1 \]

and

\[ \sum_{j=0}^{H-1}d_{n+j}^2\ge 1+2^2+4^2+\cdots+(2H-2)^2 =1+\frac23(H-1)H(2H-1)\gg H^3. \]

The first bound and \(p_m\ll m\log m\) give

\[ H^2\ll (x+H)\log(x+H). \]

If \(H\ge x\), the right side is \(O(H\log H)\), which is impossible for large \(H\); hence \(H

Set \(X=p_{n+H-1}\). Then \(n+H-1<2x\), so

\[ X\le p_{\lceil2x\rceil}\ll x\log x. \]

All \(H\) squared gaps in the witness have lower prime endpoint at most \(X\), and therefore Stadlmann's theorem gives, for every \(\eta>0\),

\[ H^3\ll \sum_{j=0}^{H-1}d_{n+j}^2 \le\sum_{p_m\le X}d_m^2 \ll_\eta X^{1.23+\eta}. \]

Thus

\[ H\ll_\eta x^{0.41+\eta/3}(\log x)^{(1.23+\eta)/3}. \]

Given \(\varepsilon>0\), choose \(0<\eta<3\varepsilon\) and absorb the fixed log power into

\(x^{\varepsilon-\eta/3}\). This proves

\[ \boxed{h(x)\ll_\varepsilon x^{41/100+\varepsilon}}. \]

The arithmetic identity \(1.23/3=0.41\), the exact finite sum formulas, and the log-exponent bookkeeping are rechecked by the standalone script.

Even a conjecturally optimal global estimate

\(\sum_{p_m\le X}d_m^2=X^{1+o(1)}\) would give only

\(h(x)\le x^{1/3+o(1)}\) by this argument. Therefore improving the global second moment alone cannot reach a logarithmic upper bound.

4. Exact finite computation

Exact reduction to a local-run sequence

Define

\[ \ell(n)=\max\{r\ge1:d_n,d_{n+1},\ldots,d_{n+r-1} \text{ are pairwise distinct}\}. \]

Then (a)

\[ h(x)=\max_{1\le nFor \(k\ge1\), define the generalized inverse

\[ R(k)=\min\{n:\ell(n)\ge k\}. \]

Then (a)

\[ h(x)\ge k\quad\Longleftrightarrow\quad x>R(k). \]

OEIS A078515 lists starts where \(\ell(n)\) sets a strict new record; it equals the list of distinct locations on the frontier \(R(k)\), but it need not list \(R(k)\) once for every \(k\) if a record jumps by more than one.

Streaming algorithm and completeness certificate

(a) Immediately before processing gap \(d_r\), maintain the largest interval

\([L,r-1]\) whose gaps are pairwise distinct, together with the most recent index of every gap value. If the previous occurrence of \(d_r\) is \(q\ge L\), then:

  • every start \(i=L,\ldots,q\) encounters its first duplicate at \(r\);
  • hence its exact local length is \(\ell(i)=r-i\);
  • the largest length in this finalized batch is \(r-L\), at start \(L\);
  • set \(L=q+1\) and continue.

Thus record detection needs constant work per collision, not a quadratic scan. Once \(L\) exceeds a requested start limit \(K\), every start \(n\le K\) has been finalized even though its run was allowed to extend past \(K\). This is the stopping certificate needed to determine \(h(x)\) exactly for every \(x\le K+1\).

The supplied program generates primes by an odd-only segmented Eratosthenes sieve; it imports no prime list and no number-theory library.

Verified record frontier through 105,000,000 starts

The following table is (d). Each row is a strict record event; \(p_n\) is included as a compact witness locator.

| start \(n\) | \(\ell(n)\) | \(p_n\) |

|---:|---:|---:|

| 1 | 2 | 2 |

| 7 | 3 | 17 |

| 23 | 4 | 83 |

| 30 | 5 | 113 |

| 94 | 6 | 491 |

| 219 | 7 | 1367 |

| 279 | 8 | 1801 |

| 773 | 9 | 5869 |

| 1856 | 10 | 15919 |

| 3724 | 11 | 34883 |

| 6999 | 12 | 70639 |

| 7000 | 13 | 70657 |

| 19205 | 15 | 214867 |

| 184163 | 16 | 2515871 |

| 280103 | 17 | 3952733 |

| 849876 | 18 | 13010143 |

| 1870722 | 19 | 30220163 |

| 3570761 | 20 | 60155567 |

| 4114341 | 21 | 69931991 |

| 11271072 | 22 | 203674907 |

| 55282774 | 23 | 1092101119 |

| 68256040 | 24 | 1363592621 |

| 68256041 | 25 | 1363592677 |

| 104011359 | 26 | 2124140323 |

The jump row has the explicit gap word

\[ \begin{aligned} n&=19205,\qquad p_n=214867,\\ (d_n,\ldots,d_{n+14}) &= (16,8,22,26,4,24,20,6,58,12,14,10,36,18,2), \end{aligned} \]

whose 15 entries are distinct; the next gap is \(10\), its first duplicate. No earlier start has length \(14\), so

\[ \boxed{R(14)=R(15)=19205}. \]

Consequently \(h\) jumps from \(13\) to \(15\) as \(x\) passes \(19205\), and it never takes the value \(14\). This is why A078515 is not literally a one-value-at-a-time inverse.

The terminal record in the scanned regime is

\[ \begin{aligned} n&=104011359,\qquad p_n=2124140323,\\ (d_n,\ldots,d_{n+25}) &=(48,40,152,46,2,28,14,4,72,12,20,58,140,78,30,16,\\ &\qquad 56,42,10,6,62,60,34,36,24,108), \end{aligned} \]

with next gap \(6\).

Some exact values, all (d), are

| \(x\) | \(h(x)\) |

|---:|---:|

| 10 | 3 |

| 100 | 6 |

| 1,000 | 9 |

| 10,000 | 13 |

| 100,000 | 15 |

| 1,000,000 | 18 |

| 10,000,000 | 21 |

| 100,000,000 | 25 |

| 105,000,001 | 26 |

Together with the record table and the strict condition \(n

Independent checks performed

The full run:

python3 runs/erdos852_wave6n_reverify.py \
  --start-limit 105000000 --small-crosscheck 20000

did the following.

1. Generated all required primes from scratch and stopped only after every start \(1,\ldots,105{,}000{,}000\) was finalized.

2. Scanned 105,000,003 primes / 105,000,002 gaps through prime 2,145,390,563.

3. Recomputed all 24 record events above.

4. Independently recomputed starts \(1,\ldots,20{,}000\) using a monolithic sieve and a direct per-start set scan. This independently catches and confirms the \(13\to15\) jump.

5. For every record witness, used deterministic 64-bit Miller–Rabin to check every endpoint prime and every intervening integer composite. Hence the displayed differences really are consecutive prime gaps, independently of the segmented sieve flags.

6. Rechecked the elementary finite-sum formulas and every rational exponent used in Sections 2–3.

Two full measured runs on this VM took 93.46–100.84 wall seconds (93.39–100.76 user CPU seconds) and at most 20.7 MB peak RSS. The final post-edit run ended PASS. The default 12,000,000-start check takes about 10.4 seconds and proves the frontier through length 22.

5. What remains, and the exact wall

The first power-of-log question is answered by the repaired lower-bound argument, but the requested estimate and the question

\[ h(x)=o(\log x)? \]

remain open in the sources checked.

Why the standard tools here do not decide it

  • (a/b) The fixed five-prime collision count reaches exactly the

\(H\asymp(\log N)^{1/3}\) scale. The exponent balance fails above it unless one uses the “no intermediate primes” constraints or another source of saving.

  • (b) The global mean-square method cannot get even a subpolynomial upper bound; with the conjecturally optimal second moment it still stops near \(x^{1/3}\).
  • (c) The iid and singular-series-pressure models reported in the discussion suggest that \(h(x)\) may instead have linear-log extreme scale. They are not proofs and are not used in any boxed conclusion here.

To disprove \(h(x)=o(\log x)\) along the conditional route, a sufficient missing lemma would be a power-saving, lower-bound form of Hardy–Littlewood uniform for growing patterns of \(k=O(\log N)\) primes in a window \(O((\log N)^2)\), together with a uniform Bonferroni minorant enforcing that all unselected offsets are composite and an averaged control of the resulting singular-series pressure. Existing fixed-\(k\) upper-bound sieves do not provide this; lower-bounding prime patterns runs into the parity barrier, and even the fixed twin-prime case is unresolved.

To prove \(h(x)=o(\log x)\), one would instead need a uniform collision theorem forcing a repeated gap in every block of \(\varepsilon\log x\) consecutive prime gaps for every fixed \(\varepsilon>0\). None of the global moment or fixed-pattern estimates above supplies such an extreme, every-block statement.

Cost of extending the finite scan

The remaining published A078515 starts are about \(1.01\times10^9\), \(1.31\times10^9\), and \(7.89\times10^9\). At the measured Python rate, reproducing through the last of these would cost about \(7.0\times10^3\) CPU seconds, i.e. roughly 2 core-hours, and sieve primes to about \(2\times10^{11}\). That exceeds the permitted few-minute run, so it was not attempted. An optimized C/C++ primesieve implementation would be substantially faster, but finding a new record after \(7.89\times10^9\) has no known finite stopping bound and in any case would not settle an asymptotic statement.

6. Re-verification artifact

Standalone checker:

runs/erdos852_wave6n_reverify.py

It is self-contained Python 3, has a fast 12-million default, and accepts

--start-limit 105000000 to reproduce every computational claim in this report.

PARTIAL: Verified the repaired \(h(x)\gg(\log x)^{1/3}\) and \(h(x)\ll_\varepsilon x^{0.41+\varepsilon}\) reductions, computed the exact frontier through 105,000,000 starts, and found \(R(14)=R(15)=19,205\); the \(o(\log x)\) question remains beyond current fixed-tuple sieve and global-moment methods.

This is the AI working report, labelled by outcome — not an independently verified claim unless marked PROVED. ← ledger