Prime-counting parity in x^o(1) time, with 5,488 lines of Lean 4 written by Claude Code

xennygrimmato_ · x · 2026-11-06

Researcher xennygrimmato released a deterministic algorithm that decides whether the number of primes up to x is odd or even in x^o(1) time. For n-bit x, the previous best was √x = 2^(n/2) (exponential in n); the new algorithm runs in 2^(n/√log n).

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 →