Prime parity algorithm details: one SAT query, 855K intervals verified numerically

xennygrimmato_ · x · 2026-11-06

The author shares key numbers for the prime-counting parity algorithm: time reduced from x^(1/2+o(1)) to x^o(1); works on any interval [A, B], not just short ones; requires a single query to Anthropic's #SAT engine; formalized in 5,488 lines of Lean 4 written with Claude Code, with 0 sorries, 3 standard axioms, and 855,150 intervals checked numerically.

Core idea: Polymath4 (Tao, Croot, Helfgott) got parity on short intervals but needed μ(d) for every d ≤ √x. Key insight: mod 2, μ(d) just asks whether d is squarefree — the same question at half the size. Applying it log n times turns π(x) mod 2 into a single count.

Related event: Breakthrough Prime Parity Algorithm in x^o(1) Time Written Entirely by Claude Code(4 posts)→

Original post →

More from Research

Research channel →