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

Analysis of Jensen Huang's GTC 2026 OpenClaw claims and Nvidia's strategy
A fact-check of Nvidia CEO Jensen Huang's GTC 2026 keynote claims about OpenClaw's growth, agent security risks, and Nvidia's proprietary solutions. The source verifies technical claims while analyzing Nvidia's business positioning.

Rethinking "AI coding assistants": The case for a software printer metaphor
A Reddit post argues the current "assistant" metaphor limits AI dev tools, proposing a "software printer" that outputs deployed, maintained applications from a specification.

Anthropic's Claude Mythos: Fear Marketing or Real Risk?
Anthropic claims its Claude Mythos model excels at cybersecurity bug finding, but critics argue the company's warnings of catastrophe are a marketing ploy to distract from current harms and sway regulators.
Opus 4.7 Can Follow ~500 Instructions, Up from ~150 a Year Ago
Research updated in May 2026 shows Opus 4.7 can reliably follow ~500 instructions, compared to ~150 in July 2025. GPT-5.5 handles ~5000. Implications for CLAUDE.md file size.