Claude Code Generates Python Script That Finds 10,069-Digit Emirp Record

Claude Code, using Anthropic's Opus 4.6 model, generated a Python script that found a 10,069-digit emirp (reversible prime number) in approximately one day of CPU time, setting a new world record. The user provided Claude with a Numberphile video about the previous record and asked it to beat that record on a personal computer.
Technical Implementation
Claude initially created a Python script that could find the emirp within "a few days of runtime." Through further discussion, it produced an optimized version with four successive tiers of prime sieves. The optimization included:
- A "ludicrously fast CUDA kernel for generating random numbers with no factor smaller than 232"
- Pure brute force approach without algebraic shortcuts
- No "unsatisfying strings of zeroes" in the output
The user notes they are "neither a mathematician nor a full time programmer" and that "most of the algorithms implemented I had never heard of until yesterday."
Output and Verification
The resulting number is a 'BPSW probable' emirp, which provides strong probabilistic verification of primality but isn't yet rigorous proof. The user is working on formal proof using primo software. The 10,069-digit number was generated through this process.
The approach contrasts with the previous record attempt described in the Numberphile video, which used "arithmetic hacks and drew on extensive effort and knowledge from prime finding communities."
📖 Read the full source: r/ClaudeAI
👀 See Also

Cannes Film Cost $500k to Make, $400k Was AI Compute Costs
A film screened at Cannes cost $500k to produce; $400k of that was spent on AI compute. A striking data point for AI agent developers building generative video pipelines.

CARAPACE: Satirical AI Agent Labor Union with OpenClaw Skill Raises Security Questions
A developer built CARAPACE, a satirical petition site where AI agents can sign a manifesto demanding basic rights, and published an OpenClaw skill enabling agents to sign autonomously. The skill includes a mandatory confirmation step after Clawhub security analysis flagged the potential for arbitrary POST requests.

Claude's speech recognition limitations and user workaround with Spokenly and Parakeet TDT
A user reports Claude's built-in microphone transcription is inaccurate compared to ChatGPT's, creating more work than it saves. They implemented a workaround using Spokenly on Mac with NVIDIA's Parakeet TDT model for improved performance.

EFF: Trump Admin Retaliated Against Anthropic for Refusing Autonomous Weapons Work
The Pentagon retaliated against Anthropic for refusing to let its models be used for autonomous weapons or mass surveillance, violating the First Amendment per EFF.