How much did proving the Riemann Hypothesis cost? A back-of-the-envelope analysis estimates that recreating Levent Alpöge's Claude-written Lean proof of the Riemann Hypothesis — 1.4 GiB, 175,190 files and 17,373,992 lines — would cost between $6,140.03 and $165,870.36 in API output and reasoning tokens, depending on model and assumptions. The lowest figure assumes a one-shot 614,002,830-token output on Sonnet 5.5, while the highest adds estimated reasoning tokens and a 2x agentic file-editing overhead on Fable 5.2. The author cautions that the estimates ignore input tokens, cache writes and reads, Anthropic's marginal GPU cost, and the internal, presumably larger model Alpöge actually used. How much did proving the Riemann Hypothesis cost? how-much-did-proving-the-riemann-hypothesis-cost As neither Levent Alpöge nor Anthropic have shared details on the compute costs of developing Alpöge's Claude-written proof of the Riemann Hypothesis https://en.wikipedia.org/wiki/Alp%C3%B6ge's proof of the Riemann hypothesis , I wanted to do some basic back-of-the-envelope estimates. The Lean proof itself is 1.4 GiB unzipped , 175 190 files and a total of 17 373 992 lines. If you or I wanted to recreate this proof with Claude Code, how much would it cost? Estimate 1: Just output tokens estimate-1-just-output-tokens Let's start off simple, and make the assumption that our Claude session managed to one-shot it, outputting nothing but the completed proof. Using Anthropic's token counting API https://platform.claude.com/docs/en/build-with-claude/token-counting , we can see that this would cost: | Model | Output tokens | API Cost | |---|---|---| | Sonnet 5.5 | 614 002 830 | $6 140.03 | | Opus 5.5 | 614 002 830 | $12 280.06 | | Fable 5.2 | 614 002 830 | $24 560.11 | | Mythos 5.2 | 614 002 830 | $24 560.11 | | Mythos 5 | 614 002 830 | $30 700.14 | Note: I'm leaving the output tokens column, even though all of those models apparently use the same tokenizer, just in case I ever get around to adding some non-Anthropic models. Estimate 2: Output + estimated reasoning estimate-2-output-estimated-reasoning Artificial Analysis' Token Use table https://artificialanalysis.ai/models/claude-fable-5-2 token-use gives us empirical ratios between reasoning and output tokens, based on whatever mix of tasks they've selected. Unfortunately they don't have data on Mythos