Does the Riemann Hypothesis Break Encryption? No. Here’s Why

Quick answer: No. The November 2026 proof of the Riemann Hypothesis gives no known method for breaking RSA, Bitcoin, HTTPS or online banking. The Riemann Hypothesis is about how prime numbers are distributed, while RSA relies on the difficulty of factoring large numbers and Bitcoin’s signatures rely on elliptic-curve discrete logarithms. Neither problem becomes easy because RH is proved. What does change: the accompanying proof of the Generalized Riemann Hypothesis for Dirichlet L-functions removes an unproved assumption from some algorithms, such as the deterministic Miller primality test. The proof strengthens guarantees; it gives no shortcut for stealing keys.

Facts checked November 23, 2026.

When the news broke on November 20, 2026 that Levent Alpöge, working with Anthropic’s Claude, had released a computer-verified proof of the Riemann Hypothesis, one of the most searched follow-up questions was about security: is my bank account, my crypto wallet or my messaging app now at risk? It is a reasonable worry, because both the Riemann Hypothesis and modern encryption are about prime numbers. The short answer is no. Here is why, and what the proof does change.

The Short Answer

SystemSecurity rests onAffected by the RH proof?
RSA (older HTTPS, email, signatures)Hardness of factoring large numbersNo
Elliptic-curve crypto (modern HTTPS, Bitcoin signatures)Hardness of the elliptic-curve discrete logarithmNo
Bitcoin mining and hashing (SHA-256)Properties of hash functionsNo
AES (encrypting files and connections)Design of a symmetric cipherNo
Algorithms that assumed GRH (primality tests, square roots mod p)Running-time guaranteesYes, in a good way: guarantees become unconditional for the cases proved

How RSA Uses Primes

RSA begins by choosing two large secret primes \(p\) and \(q\) and multiplying them to get a public modulus \(n = pq\). The public key also includes an exponent \(e\); the private key holds the matching private exponent. Knowing \(p\) and \(q\) lets anyone compute that private exponent, so the security of properly implemented RSA rests on one fact: recovering the factors of a 2048-bit modulus (617 decimal digits) is infeasible with known classical methods. The best of them, the general number field sieve, still takes far too long.

RSA is not secure because primes are hard to find; generating large primes and testing primality are fast. The hard problem is factoring a known product. The Riemann Hypothesis speaks to how primes are spread out, which helps the easy part, not the hard part.

Why the Riemann Hypothesis Does Not Help Factoring

The Riemann Hypothesis is a statement about the zeros of the Riemann zeta function. It tells us how evenly primes are spread out on average: in symbols, \(\pi(x) = \operatorname{li}(x) + O(\sqrt{x}\log x)\), where \(\pi(x)\) counts the primes up to \(x\) and \(\operatorname{li}(x)\) is the logarithmic integral. That constrains the total counting error. It is a statement about the crowd of primes, not about where any particular prime factor of a given number is hiding.

Factoring \(n = pq\) means finding two specific primes. Knowing that primes are well distributed does not point to them. There is also a practical reason the proof changes little: mathematicians and computer scientists have long assumed the Riemann Hypothesis and its generalizations are true, and the best factoring algorithms already work as well as they would if it were. A proof confirms what everyone was already betting on; it does not reveal a new attack.

RH, GRH and Factoring Compared

ResultWhat it tells usConsequence for RSA
Riemann HypothesisWhere the zeros of zeta are; how far the prime count can stray from li(x)No known factoring shortcut
GRH for Dirichlet L-functionsHow evenly primes split among remainder classes; small witnesses and non-residues existFaster guaranteed primality tests; no factoring shortcut
A fast factoring algorithmHow to find \(p\) and \(q\) from \(n\)Would break RSA; no one has found one, and RH does not provide one

What the Proof Does Change: Guarantees

Some algorithms used in cryptography have a peculiar status: they always work in practice, but their speed could only be proved by assuming the Generalized Riemann Hypothesis (GRH). Alpöge’s proof covers GRH for Dirichlet L-functions, which includes the cases these algorithms need:

  • Miller’s primality test (1976). The Miller-Rabin test is usually run with random bases, but it can be made deterministic. Assuming GRH for Dirichlet L-functions, Eric Bach proved in 1990 that every odd composite \(n\) has a compositeness witness no larger than \(2(\ln n)^2\). With Dirichlet GRH now proved, that guarantee no longer rests on an assumption. In practice, systems use the faster randomized Miller-Rabin test, and the unconditional AKS test (2002) already existed, so nothing changes day to day.
  • Square roots modulo a prime. The Tonelli-Shanks algorithm solves \(x^2 \equiv a \pmod p\) and may need a “quadratic non-residue,” a number that is not a square mod \(p\). Dirichlet GRH guarantees one below \(2(\ln p)^2\), so a simple deterministic search is provably fast.
  • Primitive roots and small primes in progressions. Bounds on the smallest primitive root and on the first prime in an arithmetic progression, each with its own constants, become unconditional.

Not everything is covered. Some algorithms for computing class groups of general number fields assume a Riemann Hypothesis for Dedekind zeta functions, which Dirichlet GRH does not settle. So not every result described as “conditional on GRH” becomes unconditional.

Try It: Testing Primes Is Easy, Factoring Is Hard

Prime test vs factoring lab. Enter a whole number (up to about 40 digits) or pick an example. The lab runs Miller’s deterministic test with every base up to \(2(\ln n)^2\), then tries to factor the number by trial division for 2 million steps.

The default example is the product of two 10-digit primes. The Miller test proves it composite in a fraction of a millisecond, but trial division cannot find the factors. Scale that gap up to 617-digit RSA numbers and you see why RSA is safe: proving a number composite is easy, finding its factors is not.

What About Bitcoin?

Bitcoin uses elliptic-curve signatures on the curve secp256k1, both ECDSA and, since the 2021 Taproot upgrade, Schnorr signatures, together with the SHA-256 hash function. None of these relies on factoring or on the Riemann Hypothesis. Elliptic-curve security depends on the difficulty of the discrete logarithm problem on the curve, and nothing about the zeta function’s zeros makes that easier.

The Real Threat: Quantum Computers

If something does break RSA and elliptic-curve cryptography, it will most likely be a large, error-corrected quantum computer running Shor’s algorithm (1994), which factors and solves discrete logarithms efficiently. No quantum computer today is close to the size needed. To prepare, the US National Institute of Standards and Technology published its first post-quantum standards in August 2024: FIPS 203 (ML-KEM), FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA), based on lattice and hash problems, and organizations are migrating to them now. That shift is happening because of quantum computing, not because of the Riemann Hypothesis.

Common Misconceptions

“RH would give a formula for all primes, so encryption collapses.” No. RH describes how primes are distributed on average; it gives no shortcut to the factors of a specific number.

“Cryptographers were hoping RH was false.” No. Many algorithms were analyzed assuming GRH is true. A proof confirms those assumptions.

“A proof by an AI means AI can now break codes.” Different problems. Finding a proof is not the same as finding an efficient factoring algorithm, which may not exist.

“Primality testing and factoring are the same.” No. Testing whether a number is prime is fast; finding its factors is believed to be hard. The lab above shows the difference.

Watch: Primes, Encryption and the Proof

If you learn better by watching, these videos are worth your time.

Encryption and HUGE numbers (Numberphile). How RSA uses large primes and why factoring them is hard.
The Riemann Hypothesis Falls (reaction) (Numberphile). Reaction to the November 2026 proof, including what it does and does not change.

Frequently Asked Questions

Does the Riemann Hypothesis proof break encryption?

No. RSA, elliptic-curve cryptography, Bitcoin and AES do not depend on the Riemann Hypothesis being unproved. The proof gives no method for factoring or solving discrete logarithms.

Why do people think the Riemann Hypothesis is related to encryption?

Because both involve prime numbers. The Riemann Hypothesis describes how primes are distributed, while RSA relies on the difficulty of factoring a product of two large primes. These are different questions.

Is RSA still safe after the Riemann Hypothesis proof?

Yes. RSA with properly sized keys, 2048 bits or more, remains secure against classical computers. The long-term threat is large quantum computers, which is why post-quantum standards are being adopted.

Does the Riemann Hypothesis affect Bitcoin?

No. Bitcoin uses elliptic-curve signatures and SHA-256 hashing, neither of which depends on the Riemann Hypothesis.

What does the proof change for computer science?

It turns some conditional guarantees into theorems, such as the running time of Miller’s deterministic primality test, for the cases covered by GRH for Dirichlet L-functions.

Keep Exploring

Sources and Further Reading

Quiz: Primes, Proofs and Encryption

Five questions on what the Riemann Hypothesis does and does not mean for encryption. Pick an answer and press Submit.

Answer each question and press Submit to see your result right away.

1. Does proving the Riemann Hypothesis break RSA encryption?
Found a bug? Let us know!
2. What does RSA’s security depend on?
Found a bug? Let us know!
3. Which algorithm’s guarantee becomes unconditional thanks to GRH for Dirichlet L-functions?
Found a bug? Let us know!
4. What is the main long-term threat to RSA and elliptic-curve cryptography?
Found a bug? Let us know!
5. What does Bitcoin use for its signatures?
Found a bug? Let us know!

Related to This Article

What people say about "Does the Riemann Hypothesis Break Encryption? No. Here’s Why - Effortless Math"?

No one replied yet.

Leave a Reply