P vs NP asks whether every problem whose answer is quick to check is also quick to solve. Nobody knows. The Clay Mathematics Institute offers a $1 million prize for the answer and still lists the problem as unsolved.
A post now doing the rounds puts it in two lines over a film still of a man close to tears: "if P≠NP, we're cooked slowly" and "if P=NP, we're cooked instantly." The joke works because it matches the mood after a heavy week of AI math announcements. As a guide to what would actually happen, both halves need repair.
"Cooked instantly" assumes that a proof would hand somebody a fast, usable algorithm. It might not. "Cooked slowly" suggests that the other answer is a known, gradual decline. The mathematics says nothing of the kind, and it does not even guarantee that your encryption survives.
TL;DR: what each answer would mean
| Question | Short answer |
|---|---|
| What does P vs NP ask? | If an answer is quick to check, is it also quick to find? |
| Is it solved? | No. Clay lists it as unsolved |
| What do most experts expect? | P≠NP. Some, including Donald Knuth, have said they believe P=NP |
| Would P=NP break encryption at once? | Only with a practical algorithm in hand. A proof alone may not give one |
| Would P≠NP keep encryption safe? | No. It is necessary for crypto based on hard problems, not sufficient |
| Did the November 2026 AI proofs settle it? | No. VP≠VNP is a related algebraic result |
| What should builders do? | Inventory RSA and elliptic-curve use, plan for swappable algorithms |
What is P vs NP in simple terms?
P stands for polynomial time. These are problems where the work grows at a manageable rate as the input grows. Sorting a list of names is the everyday example: ten times more names costs somewhat more than ten times the work, not billions of times more. Strictly, P covers yes-or-no questions, such as "is there a route between these two points?", but the intuition carries over.
NP stands for nondeterministic polynomial time. These are problems where, if the answer is yes, there is some evidence a computer can check quickly. A filled Sudoku is the familiar picture. Checking that every row, column and box is correct takes moments, while finding a solution to a very large generalized grid may require a long search.
P vs NP in simple terms shown as a jigsaw where the last piece is easy to check once placed
Every P problem is also in NP: if you can solve something quickly, you can check it by solving it again. The open question runs the other way. Is there a shortcut for every problem whose answers are quick to check?
Some NP problems are special. In 1971, Stephen Cook showed that satisfiability, the question of whether a logic formula can be made true, is NP-complete: every other NP problem can be translated into it efficiently. Leonid Levin reached similar results independently. Since then, hundreds of scheduling, routing and graph problems have joined the list. A fast algorithm for any one of them would be a fast algorithm for all of NP, which would mean P=NP.
Why is the meme spreading now?
The last week of November 2026 gave it a lot of material.
- November 23: Anthropic posted a Claude-written proof that VP≠VNP, and OpenAI published its own, different proof. VP and VNP are the algebraic cousins of P and NP. Anthropic's notes say plainly that the result does not settle P vs NP.
- November 29: twenty-one cryptographers launched the Cryptography Incident Review Group to advise on disclosing breaks; see our CIRG launch explainer. The site names no specific break.
- November 25: quantum computing researcher Scott Aaronson wrote: "I now feel in my bones, for the first time ever, that a proof of P ≠ NP is not far." In the same post he said he was virtually certain that AI labs held unpublished results in cryptography. Our claimed-versus-verified breakdown of that post covers what he did and did not say.
- November 27: Aaronson added that he expects a major theoretical cryptanalysis result from the labs soon, and that it will not put currently deployed cryptosystems in imminent danger.
- November 28: Axios ran a story headlined P=NP: Rumors swirl that AI models have cracked dangerous math secrets.
None of this is a proof of P=NP or of P≠NP. It is a run of related results, one researcher's change of mood, and rumors.
"If P=NP, we're cooked instantly": is that right?
It could be very bad. Cook's official problem description for the Clay Institute says the security of the internet, including most financial transactions, rests on assumptions such as the difficulty of factoring large integers, and that if P=NP "these assumptions are all false." He gives a concrete case: an algorithm solving 3-SAT, a standard NP-complete form of satisfiability, in n^2 steps could factor 200-digit numbers in a few minutes.
Read the condition in that example. The algorithm runs in n^2 steps, and someone has it. P=NP by itself promises neither.
A proof might not contain an algorithm
Mathematicians can sometimes prove that something exists without showing how to build it. Cook says it is possible that a nonconstructive argument could show P=NP "without yielding any feasible algorithm" for the standard NP-complete problems.
Donald Knuth took this view in a 2014 interview. "I've come to believe that P = NP," he said, and then explained why that might not matter: "such a proof will almost surely be nonconstructive." In that world the theorem is settled, the prize question is answered, and your bank connection works as it did the day before.
Polynomial does not mean fast
"Polynomial time" means the running time is bounded by the input size raised to some fixed power. The definition does not care whether that power is 2 or 2,000. Cook points out that a program needing n^100 steps could never run even on an input of size 10.
The table below assumes a machine doing one billion steps per second on an input of size 100. The figures are plain arithmetic and ignore constant factors, which can make real algorithms far slower.
| Running time | Type | Time at input size 100 |
|---|---|---|
n^2 | Polynomial | About 10 microseconds |
n^3 | Polynomial | About 1 millisecond |
1.5^n | Exponential | About 13 years |
n^10 | Polynomial | About 3,200 years |
2^n | Exponential | About 40 trillion years |
n^100 | Polynomial | About 3 × 10^183 years |
Running time of P vs NP algorithms pictured as an hourglass, since polynomial time can still be extremely slow
At this size, a polynomial algorithm with exponent 10 loses badly to an exponential one with base 1.5. The n^100 algorithm does beat 2^n eventually, but only once the input passes roughly 996, and by then both are far beyond any physical computer. Try the sizes yourself.
The upside the meme leaves out
A practical P=NP algorithm would not only break things. Cook writes that it would have "stunning practical consequences of a more positive nature." It would let a computer find a formal proof of any theorem that has a proof of reasonable length, and it would give exact answers to many optimization problems that industry now handles with approximations.
"If P≠NP, we're cooked slowly": is that right?
P≠NP would mean that some problems in NP have no efficient algorithm. That is a statement about the hardest cases. It is much weaker than many people expect.
Hard in the worst case is not hard in practice
A problem can be NP-complete and still be easy on most inputs that anyone meets. Industrial SAT solvers handle large real formulas every day, even though no known algorithm is fast on all of them.
Cook draws the consequence directly: even if P≠NP, every NP problem might still have a polynomial-time algorithm that works on most inputs. That, he writes, "could render cryptography impossible and bring about most of the benefits of a world in which P = NP." Encryption needs more than the existence of a few hard cases. It needs a way to generate hard cases reliably, every time someone creates a key.
RSA does not rest on P≠NP
P≠NP does not guarantee encryption: a padlock shaped like a question mark
RSA depends on factoring large integers being hard. Factoring is in NP, but it is not known to be NP-complete, and Cook says it "seems unlikely" to be either in P or NP-complete. A fast factoring algorithm could therefore exist in a world where P≠NP.
One already exists on paper for a different kind of machine. Peter Shor showed that a quantum computer can factor integers in polynomial time. A large enough quantum computer would threaten RSA and elliptic-curve cryptography without resolving P vs NP at all. That is why NIST approved three post-quantum standards, FIPS 203, 204 and 205, in August 2024.
Aaronson put the logic in one sentence on November 27: "P ≠ NP is necessary for secure cryptography based on hard problems, but it's not sufficient."
The five worlds: a better map than two outcomes
In 1995, computer scientist Russell Impagliazzo wrote A Personal View of Average-Case Complexity, which describes five possible worlds instead of two. A one-way function, used below, is a process that is easy to run forward and hard to reverse on almost all inputs.
| World | What is true | What it feels like |
|---|---|---|
| Algorithmica | P=NP or close to it | Hard search becomes easy; computer security by secret codes collapses |
| Heuristica | Worst cases are hard, typical cases are easy | P≠NP, yet cryptography fails much as in Algorithmica |
| Pessiland | Hard typical problems, no one-way functions | Problems stay hard and that hardness protects nothing |
| Minicrypt | One-way functions, no public-key cryptography | Signatures and private codes work; strangers cannot agree on a secret |
| Cryptomania | Public-key cryptography is possible | The world we appear to live in |
Three details speak to the meme.
Heuristica breaks the "slowly" line. P≠NP holds there, but Impagliazzo writes that for network security and cryptography there would not be much difference between Algorithmica and Heuristica.
Pessiland is where "slowly" belongs. He calls it "the worst of all possible worlds," and describes progress there as being like progress in our world: "made slowly through a more complete understanding of the real-world situation and compromises by using unsatisfactory heuristics."
Algorithmica comes with fine print. Impagliazzo says outright that his tour ignores whether an n^100 algorithm would count as feasible, and assumes that if an algorithm exists, people know it. Those two assumptions are exactly what "instantly" depends on.
Within those assumptions, his Algorithmica is dramatic. He writes that P=NP would make trivial many parts of the artificial intelligence program that are "challenging to the point of despair," and that any code that could be developed "could be broken just as easily."
When he wrote the paper, he judged Cryptomania closest to reality because, as far as anyone knew, RSA was secure. Proving which world we live in would take much more than settling P vs NP.
Where does AI fit?
AI does not need P=NP to make progress on hard problems, and its progress does not tell us the answer.
Look at the shape of the recent math work. Finding a formal proof is hard. Checking one is mechanical. A proof assistant such as Lean verifies each step, so a model can try many approaches and keep only what passes. That is the check-versus-solve gap used as a workflow: expensive, guided search on one side and a cheap, strict checker on the other. Our explainer on how language models solve math problems walks through that loop.
A model that finds one proof has searched well on that instance. It has not shown that every short proof can be found quickly, which is closer to what P=NP would imply.
The same pattern is useful far from theory. If your task has a reliable checker, such as a test suite, a type system or a schema, you can let a model attempt it many times and accept only passing results. If it has no checker, more attempts mostly give you more things to review.
What do researchers believe?
- Most complexity theorists expect P≠NP. Cook says so in the problem description. One reason is that programmers and engineers have looked for fast algorithms for NP-complete problems for decades without success.
- Aaronson wrote in a November 28 comment under his November 27 post: "I remain at 96% for P≠NP."
- Knuth said in 2014 that he had come to believe P=NP, while expecting the proof to be of little practical help.
- Emanuele Viola restated a long-held belief that P=NP in a November 2026 essay, which we cover in Viola's CACM piece on AI and P vs NP.
These are beliefs, not results. Related conjectures have moved recently: OpenAI claimed to disprove the Exponential Time Hypothesis, a stronger assumption about how slow satisfiability must be. Refuting it is still far from proving P=NP.
What should you do either way?
The useful actions do not depend on which answer wins.
- List your cryptography. Note where you use RSA and elliptic curves: certificates, code signing, SSH keys, VPNs and signed documents.
- Make algorithms swappable. Keep the choice in configuration so a replacement does not require a rewrite.
- Start with long-lived secrets. Data that must stay private for many years deserves post-quantum protection first.
- Ask three questions of any "AI broke it" claim. Is there a paper or code? Which scheme and which key sizes? Who outside the lab has checked it?
- Do not rotate everything because of a rumor. Wait for a named scheme and specific advice, while doing the preparation above.
For the track record so far, see what has been claimed about AI and cryptography, Google's AI-written factoring claim and which Millennium Prize problems AI has touched.
A corrected version of the meme
If you want the accurate form, it is less catchy. If P=NP with a fast, known algorithm, much of today's cryptography fails and a great deal of hard search gets easy. If P=NP with no usable algorithm, textbooks change and little else does. If P≠NP, the safety of your keys still depends on further facts that nobody has proved.
The honest caption is "we don't know which world this is." It has been true since 1971.
Update — November 29, 2026: pequalnp.com is running a public agent fleet on P vs NP with a Lean 4 repo — open search, not a Clay Prize proof.
Related reading
- Aaronson on AI labs and cryptography: claimed vs verified
- Viola's CACM essay on AI and P vs NP
- Anthropic's VP≠VNP proof and what is verified
- The 7 Millennium Prize Problems and AI
- AI integer factoring claim: what does not break
- Can AI break cryptography?
- Clay Mathematics Institute: P vs NP
Status of claims and open problems is accurate as of November 29, 2026 and may change as papers are published and reviewed.
