PapersBP-002

When AI Does the Maths: What It Means for RSA, P vs NP and Post-Quantum Crypto

AI is solving famous maths problems. Can it break the encryption that protects your bank account? Not yet. The real deadline comes from quantum computers, and the fix is already rolling out.

Ref
BP-002
Version
1.0
Published
2 Dec 2026
Read
21 min
Author
Luke Taylor
Classification
TLP:CLEAR

≈ 4,700 words · 9 sections · 3 figures

AI is now solving maths problems that beat the world’s best mathematicians for decades. So people are asking: can it break the encryption that protects my bank account? Not yet, and the maths headlines aren’t the reason to worry. The real deadline comes from quantum computers, and the fix is already rolling out.

Executive summaryThe short version
  1. AI became a serious mathematician in 2026. It cracked several famous problems, including a claimed proof of the Riemann Hypothesis.
  2. None of that breaks the encryption you use today.
  3. AI is making attacks cheaper, and it’s helping bring closer the day quantum computers can break today’s encryption.
  4. The replacement, called post-quantum cryptography, already protects most traffic through Cloudflare. Businesses still have work to do.

In 2024, AI won a silver medal at a school maths olympiad. Two years later, a mathematician working with Claude published a computer-checked proof of the Riemann Hypothesis, a puzzle about prime numbers first posed in 1859. This post explains what that means for the encryption that keeps everyday life safe. Each section has ELI5 boxes for the tricky bits and a “What this means for you” list.

What AI is actually doing in maths right now

In about 18 months, AI went from school maths competitions to famous unsolved problems. Computers have checked most of the new results, but humans don’t yet fully understand many of them.

Date What happened In plain English
20 Nov 2026 Claimed proof of the Riemann Hypothesis A 167-year-old puzzle about prime numbers. Found by mathematician Levent Alpöge working with Claude. Computers have checked it; humans are still working through it
8 Sep 2026 Navier–Stokes “blow-up” Showed that the equations for how fluids flow can “break” in a special set-up. OpenAI ran about 10,000 AI agents for 88 hours. It isn’t quite the famous $1 million version of the problem
10 Aug 2026 Progress on the Riemann Hypothesis Claude improved a record that had stood for decades. A stepping stone to the full proof above
Jul 2026 Jacobian conjecture disproved An 87-year-old guess in algebra turned out to be false. Alpöge and Claude found the counterexample, and a computer checked it overnight
20 May 2026 Erdős unit distance conjecture disproved A 1946 guess about how many pairs of points can sit exactly the same distance apart. OpenAI’s model found a counterexample, and humans improved it within weeks
Jan 2026 Several Erdős problems solved A batch of smaller puzzles from a famous list. Some turned out to be solved already in old papers
Jul 2025 Gold-medal score at the International Mathematical Olympiad AI matched the world’s best teenage maths competitors

Some honest caveats:

What this means for you

  • AI is now a genuine research tool, not just a chatbot. Expect plenty more “AI solves famous problem” headlines.
  • A maths headline isn’t a security headline. Encryption only breaks if someone finds a fast way to undo it. That’s a different kind of problem, and it’s what the rest of this post is about.

Cryptography is a bet that some maths stays hard

Every padlock icon in your browser rests on a maths problem that is easy one way and hard the other way. Nobody has proved those problems are hard. We only know that nobody has found a fast way to solve them yet.

You rely on four main kinds of lock every day:

Lock Where you meet it Safe from today’s computers? Safe from future quantum computers?
RSA (post box) The certificates that prove a website is genuine; older systems Yes, at 2048 bits No
Elliptic curves (post box) Most secure web connections today; crypto wallets Yes No, and probably the first to fall
Lattices (post box, the new one) The quantum-safe replacement, already in modern browsers Yes Yes, as far as anyone knows
AES (house key) Scrambling your data once a connection is set up; disk encryption Yes Yes, with long enough keys

What this means for you

  • The bit at risk is the “post box” that sets up each secure connection, not the scrambling of your data itself.
  • When you read “AI just solved a famous maths problem”, the only security question is: did it find a shortcut for one of these locks? So far, the answer is no.

P vs NP: the question under all of it

P vs NP asks whether every problem that is easy to check is also easy to solve. Almost every expert thinks the answer is no (P ≠ NP). It’s still unproven, and no AI has cracked it.

Encryption lives in that gap: checking a key is easy, but finding it should be hard. Here’s what each possible answer would mean:

If someone proves… What it would mean for you
P = NP, with a fast method anyone can run The nightmare. Almost any lock could be picked quickly, including the ones scrambling your data
P = NP, but the method is impossibly slow in practice A huge maths story, but your encryption carries on as normal
P ≠ NP (what most experts expect) Reassuring, but it doesn’t guarantee any particular lock is safe. RSA can still fall to a quantum computer either way

The 2026 twist: AI pokes at the foundations

Nobody has solved P vs NP. But in October 2026, AI took a swing at a closely related bet.

On 26 October, OpenAI said its AI had found a shortcut. It’s a small one, but enough to prove the bet wrong. The next day, Anthropic published a different shortcut found by Claude. Experts are still checking both (Popular AI).

What this means for you

  • Nothing changes for your encryption. The shortcut is tiny and doesn’t help against any of the locks in the table earlier.
  • It does show AI is now testing the assumptions that security is built on. That’s one reason experts want systems that can switch locks quickly.
  • P vs NP itself isn’t about to fall. In June, complexity theorist Lance Fortnow wrote that he doesn’t expect a proof in his lifetime, by human or machine.

The Riemann Hypothesis: proved (probably), and RSA is fine

The Riemann Hypothesis is a 167-year-old prediction about how evenly prime numbers are spread out. A machine-checked proof built with Claude appeared on 20 November 2026. It does not help anyone work out the two secret primes inside an RSA key.

What happened in 2026

So the computer says it’s right, but humans haven’t finished working out why it works. Formal peer review, and the $1 million prize, will take years.

Why it doesn’t break RSA

This is the most common myth in this whole area. The Riemann Hypothesis tells you how primes behave on average: roughly how many there are below a number, and how big the gaps get. It says nothing about which two primes were multiplied to make your RSA key. The best methods for cracking RSA never relied on it.

Cryptographers have also quietly assumed it was true for decades, for example in the maths behind some ways of testing whether a number is prime. A proof turns “assumed” into “known”. That helps defenders, not attackers.

The real security lesson

The interesting part for security people is how this proof is trusted. Nobody has read 17 million lines. People trust a small, well-tested checking program instead, and run more than one to be safe. It’s the same idea as trusting an app because its digital signature checks out, rather than reading all its code. Expect the same approach to be used to check security software itself.

What this means for you

  • Nothing to do. The Riemann Hypothesis doesn’t help anyone crack your passwords or encryption.
  • If you see “Riemann proof breaks the internet” headlines, you can safely ignore them.

Could AI break RSA?

Not directly. AI hasn’t found a new way to split an RSA number back into its two primes. But in 2026 it made the old way cheaper, and it’s helping shrink the quantum computer you’d need.

There are only two ways to break RSA: find a smarter method for normal computers, or build a big enough quantum computer. AI is speeding up both.

Road 1: normal computers, with AI doing the engineering

The public record for cracking an RSA number stood still from 2020. Then it fell three times in ten weeks:

What this means for you

  • Your bank, your email and the padlock in your browser are fine. They use 2048-bit RSA or elliptic curves. RSA-2048 is still roughly 91 billion times harder than this year’s record.
  • Old kit is the weak spot. Lu estimates cracking a 1024-bit RSA key would cost about $30 million. That’s too much for a criminal chasing one person, but affordable for a government after something valuable. RSA-1024 still hides in old routers, VPN boxes, email-signing (DKIM) keys and forgotten servers.
  • Attacks are getting cheaper faster. Work that took a team of specialists months now takes one person and an AI agent days.

For IT teams, the action is simple: find and replace any RSA-1024 keys now.

Road 2: quantum computers

Nobody has a quantum computer big enough yet. Today’s biggest have a few thousand qubits (the quantum version of bits), and most are too error-prone to be useful. But researchers keep shrinking the size of machine you’d need:

Qubits needed to break RSA-2048: from about 1 billion (2012) to 22,593 (Oct 2026)
FIG 5.1Qubits needed to break RSA-2048: from about 1 billion (2012) to 22,593 (Oct 2026)Sources: Google Security Blog and Gidney (2025), PostQuantum.com (Iceberg Quantum, Feb 2026), Alice & Bob (Oct 2026)

Each drop came from cleverer designs and better ways to correct errors, not from new maths.

Elliptic curves, which protect most web connections and crypto wallets, will probably fall before RSA. In March 2026, Google worked out that a much smaller quantum computer could break them than anyone thought (Google). Unusually, it kept the method secret and published a mathematical proof that it works, so criminals don’t get a recipe. A startup called Oratomic estimated about 10,000 qubits on its type of machine.

Those results pushed Google to bring its own upgrade deadline forward to 2029. IBM’s Quantum Safe CTO has warned that targeted attacks on high-value targets could come that same year (Cloudflare).

What about the new quantum-safe locks?

The replacement locks are built on “lattices” (explained in the next section). On 30 November, Anthropic published four papers, found by a Claude model, describing a new quantum attack on them. That sounds alarming. But independent reviewers called its cost “galactic” (CIRG). Cloudflare said attacking real keys this way would need more resources than the galaxy has. Its verdict a day later: post-quantum cryptography is still safe.

That’s the pattern to expect. AI won’t suddenly make encryption useless. It will find weak spots and shrinking safety margins faster than people could. That’s a reason to switch to the new locks now, and to build systems that can swap locks quickly.

What this means for you

  • Nobody is decrypting your data with a quantum computer today.
  • But anything secret you send today could be recorded now and unlocked later. More on that in the next section.
  • The new quantum-safe locks are holding up, even against attacks found by AI.

Post-quantum cryptography: the replacement is already here

The fix isn’t waiting on a breakthrough. NIST, the US standards body most of the world follows, finalised the new quantum-safe locks in August 2024. They’re already running in browsers, phones, servers and VPNs. The job now is swapping the old locks out.

The new locks have awkward names, but each does a simple job:

Name What it does, in plain English Status
ML-KEM (was “Kyber”) The new post box: sets up a shared secret key between two computers Final, 2024. The main choice
ML-DSA (was “Dilithium”) Digital signatures: proves a website or software update is genuine Final, 2024. The main choice
SLH-DSA (was “SPHINCS+”) Signatures built on different maths, as a backup Final, 2024. Slower, but very cautious
FN-DSA (was “Falcon”) Smaller signatures Draft; final expected late 2026 or early 2027
HQC A backup for ML-KEM, using different maths Chosen in 2025; final expected 2027

The upgrade has two jobs:

  1. Locking the conversation (key exchange). This stops harvest now, decrypt later, so it’s the urgent job. It’s also the easier one. Most systems use a hybrid: the old lock and the new lock fitted together, so an attacker has to break both.
  2. Proving who you’re talking to (signatures and certificates). This stops someone faking a website or a software update once quantum computers exist. It’s the harder job, because the new signatures are much bigger: about 2,420 bytes against 64 for today’s, and every website sends several.

After November’s AI-found attack, the reviewers’ advice was clear (CIRG). Keep upgrading, use hybrids, pick the strongest settings you can, and build systems that can switch locks without a rebuild. Waiting just means staying on RSA and elliptic curves, which are much easier for a quantum computer to break.

The official deadlines are set, and the people closest to the quantum research are aiming earlier:

Cloudflare and Google aim for 2029, six years before the UK deadline
FIG 6.1Cloudflare and Google aim for 2029, six years before the UK deadlineSources: NCSC migration timelines; US executive order, Google and Cloudflare targets via Cloudflare’s blog

The NCSC dates are the UK baseline. The 2029 targets come from the companies closest to the quantum research, which tells you how they read the risk.

What this means for you

  • Everyday users: you’ll mostly get this for free through browser, phone and app updates. Keep them up to date.
  • Businesses: in the UK, the NCSC expects a plan by 2028 and the job finished by 2035. Anything that must stay secret for years, like health records, legal files or trade secrets, is already exposed to harvest now, decrypt later.

How Cloudflare is carrying a lot of the load

Cloudflare runs a big chunk of the internet’s plumbing, and it has done more than anyone to switch on the new locks by default. As of 1 December 2026, 73% of human traffic through its network is quantum-safe, up from under 3% at the start of 2024.

Post-quantum encryption now covers 73% of human traffic to Cloudflare
FIG 7.1Post-quantum encryption now covers 73% of human traffic to CloudflareSources: Cloudflare blog posts from Sep 2025 (WARP), Feb 2026 (Radar), Apr 2026 (2029 roadmap) and 1 Dec 2026

It switched on the new locks for every website on its network back in 2022, for free, with no work needed from website owners. The share has climbed each time browsers and phones switched it on at their end. In April 2026 it set itself a 2029 deadline to finish the harder job too: proving who’s who.

Here’s what it did in 2026, in plain English:

Date What Cloudflare did
1 Dec Told customers the AI-found lattice attack doesn’t change anything: still safe
1 Oct Let developers who build on Cloudflare use the new locks in their own apps
29 Sep Started building a quantum-safe way to prove websites are genuine; added a dashboard showing customers how much of their traffic is protected; used AI to find all the old encryption in its own code
10 Sep Its free public DNS service, 1.1.1.1, can now check quantum-safe signatures on the internet’s address book
8 Sep Switched on the new locks automatically between Cloudflare and customers’ own servers, wherever those servers support them
29 Jul Started using quantum-safe signatures on its connections to customers’ servers
30 Apr Brought the new locks to office-to-office VPN links, tested with Cisco and Fortinet
7 Apr Set 2029 as its date to be fully quantum-safe
27 Feb Launched a free tool to check whether any website is quantum-safe

Next: quantum-safe certificates for website visitors by mid-2027, its business security products by early 2028, and everything by 2029.

There’s a catch. Cloudflare can only protect the part of the journey it handles. For full protection, your browser and the website’s own server both need the new locks. Only about 12% of website servers support them so far. For website owners, the fix is often just updating server software: recent versions of OpenSSL, Go and GnuTLS switch the new locks on by default.

One more thing worth noticing: Cloudflare is using AI to find all the old encryption in its own code. The same technology that’s speeding up attacks is speeding up defence.

What this means for you

  • If a site uses Cloudflare and your browser is up to date, your connection to it is very likely quantum-safe already.
  • Curious about a particular site? Paste it into Cloudflare’s free checker.
  • If you run a website, ask your hosting or IT team whether your own server supports the new locks.

What to do now

The 2026 news doesn’t change the plan. It just removes the excuse to wait.

If you’re an everyday user:

If you run IT or security, in rough priority order:

  1. Find out where you use encryption. Websites, VPNs, remote access, code signing, internal certificates, hardware security modules, smart devices and suppliers. The NCSC wants this, and a plan, by 2028. AI tools can speed up the search.
  2. Get rid of RSA-1024 and anything weaker, now. After this year’s records, assume a well-funded attacker can break it.
  3. Switch on hybrid locks wherever it’s just a setting. CDNs, load balancers, server software, VPNs and SSH. Check what live traffic actually uses, not just the config file.
  4. Protect long-lived secrets first. Anything that must stay private for ten years or more is exposed to harvest now, decrypt later.
  5. Start on signatures and certificates. They’re slow to replace, and the bigger new signatures will break some systems’ assumptions about size.
  6. Make it easy to switch locks later. The algorithm should be a setting, not a rewrite.
  7. Put it in procurement. Ask key suppliers for their post-quantum plan, and make it a buying requirement.

When the next “AI breaks encryption” headline lands, ask four questions before you panic. Does it name a real lock and key size that’s actually in use? Does it need a quantum computer that doesn’t exist yet? Is there a realistic cost? And what have NIST, the NCSC or independent experts said?

The real risk is complacency

AI became a genuinely powerful mathematician in 2026, and that’s exciting. But proving the Riemann Hypothesis doesn’t open anyone’s bank account, and P vs NP is still standing. The real threat is the one we’ve known about since 1994: a big enough quantum computer. AI is helping bring that day closer, and helping find weak spots faster.

The good news is that the replacement locks are ready, fast and already protecting most web traffic, thanks largely to Cloudflare and the browser makers. The people who get hurt will be the ones who decide it’s all hype and leave their old locks in place until 2035.

Sources

AI and maths

Factoring and quantum

Post-quantum migration

Document control

VersionDateChange
1.02 Dec 2026First published.

Author

Luke Taylor

Executive Principal, AI Engineering at NCC Group. Longer pieces on AI and security, in plain English. Views here are my own, not my employer's.