Skip to content
Vibe Math Lab.

Explainer ·

What is P vs NP? A plain explanation

P vs NP asks whether every problem whose answers are quick to check is also quick to solve. It has been open since 1971, and the Clay Mathematics Institute offers $1 million for a solution. Below it is explained from zero with one small puzzle, followed by how it relates to the AI claims of autumn 2026, none of which settles it.

I'm Tyler Orden, an independent researcher who does mathematics with AI agents. My research record is at Cyborg Mathematics.

P vs NP is the best-known open question in computer science. In plain words: if a computer can check an answer quickly, can it always find an answer quickly too? Most researchers expect the answer is no, but no one has proved it either way. Stephen Cook stated the question precisely in 1971, Leonid Levin found it independently in the Soviet Union, and in 2000 the Clay Mathematics Institute made it one of its seven Millennium Prize Problems, famous open problems with $1 million offered for each; of the seven, only the Poincaré conjecture has been solved.

What "quickly" means

Computer scientists measure speed by how the number of steps grows with the size of the input, n. A method runs in polynomial time if its number of steps grows at most like a fixed power of n, such as n² or n³; that counts as quick. For an input of 100 items, n³ is a million steps, which a laptop does in well under a second. A method that tries every possibility often needs about 2^n steps, which doubles with every extra item: 2^10 is about a thousand, 2^50 about a million billion, and 2^100 more than 10^30. That counts as slow, however fast the computer.

P and NP

P is the class of yes-or-no questions that a computer can answer in polynomial time. Sorting a list, finding the shortest route between two places on a map, and testing whether a number is prime are all in P.

NP is the class of yes-or-no questions where, whenever the answer is yes, there is evidence for it that a computer can check in polynomial time. The N stands for "nondeterministic", after an imagined machine that could guess the evidence and then check it; it does not stand for "not". Every question in P is also in NP, since a computer can check a yes answer by working it out. P vs NP asks whether the two classes are the same.

One worked example: picking numbers that add up to a target

Take the numbers 3, 34, 4, 12, 5 and 2. Can you pick some of them that add up to exactly 9? Checking a proposed answer is easy: if someone says 4 and 5, you add two numbers and see 9. (3, 4 and 2 also works.) Finding an answer is another matter. Six numbers allow 2^6 = 64 different selections, and trying them all is fine. A hundred numbers allow 2^100 selections, more than 10^30, and trying them all is out of reach for any computer. When the numbers themselves are small, a trick that keeps track of which totals can be reached is fast, but for numbers with many digits no method is known that runs in polynomial time on every input.

This puzzle, called subset sum, is in NP because a yes answer comes with evidence that is quick to check: the selection itself. If P = NP, there would be a method that finds such a selection in polynomial time.

NP-complete problems

In 1971 Cook showed that one problem, satisfiability, is as hard as anything in NP: every question in NP can be translated into it in polynomial time. Satisfiability asks whether some setting of true and false values makes a given logical formula true. Its version 3-SAT, in which each condition mentions at most three variables (for example, "x or y or not z"), is just as hard. In 1972 Richard Karp showed the same for a list of 21 problems, and thousands are now known, including subset sum, the yes-or-no version of the traveling salesman problem, and Sudoku on boards of any size. These are the NP-complete problems. They stand or fall together: a polynomial-time method for any one of them would give one for everything in NP, so P would equal NP, and a proof that any one of them has no such method would show that P ≠ NP.

Why it matters

If P = NP with a practical method, many search problems in scheduling, chip design and logistics would become easy, and much of today's cryptography, which relies on problems that are easy to check but hard to solve, would be in danger: a secret key is quick to check once you have it, and a practical method for P = NP would make finding it quick too. If P ≠ NP, as most researchers expect, it would confirm that for thousands of important problems no fast general method exists, and that finding answers is genuinely harder than checking them. Either way, a proof would need new ideas: researchers have shown that several broad families of proof techniques cannot settle the question on their own. Arora and Barak's textbook, listed under Sources, covers these barriers.

Why most researchers believe P ≠ NP

Belief is not proof, but it is widely shared. In William Gasarch's third poll of researchers who answered his request, published in 2019, 109 of 124 respondents, 88 percent, said P ≠ NP, up from 61 percent in his first poll of 2002 and 83 percent in 2012. The reasons most often given are these:

  • The search has failed for decades. People have strong practical reasons to want fast methods for NP-complete problems such as scheduling and chip design, and none has been found.
  • The "invisible fence". Thousands of problems are known to be NP-complete and thousands of others are known to be in P, and if any single problem were in both lists, P would equal NP. Scott Aaronson calls the fact that this never happens an "invisible fence": in his words, the P ≠ NP hypothesis "has had thousands of chances to be 'falsified by observation.'"
  • What P = NP would mean. If finding were as easy as checking, Aaronson writes, "There would be no special value in 'creative leaps,' no fundamental gap between solving a problem and recognizing the solution once it's found." Most researchers find that world implausible.

Factoring: hard, but probably not NP-complete

Factoring a large number into primes is the problem behind RSA encryption, and no polynomial-time method for it is known on ordinary computers. Yet it is not expected to be one of the hardest problems in NP. Its yes-or-no version, "does N have a divisor between 2 and k?", has quick evidence for both answers: for yes, the divisor itself; for no, the complete factorization of N, whose primes can each be checked quickly and are all larger than k. So it lies in both NP and its mirror class coNP. If a problem with evidence for both answers were NP-complete, NP would equal coNP, which most researchers believe is false. That is why a fast factoring method, however important for cryptography, is not expected to show P = NP by itself; the factoring page covers the 2026 claims and rumors.

Quantum computers sharpen the point. In 1994 Peter Shor gave a quantum algorithm that factors numbers and computes discrete logarithms in polynomial time. It relies on special structure of those two problems, and no quantum algorithm is known that solves NP-complete problems in polynomial time.

How this year's AI claims relate to it

In autumn 2026 Anthropic posted two AI-written papers on problems close to P vs NP, and on each occasion OpenAI posted a paper of its own on the same problem the same day. None of them settles P vs NP. Anthropic's ETH paper says its result does not bear on P vs NP directly, and its VP vs VNP paper says it does not settle P vs NP.

  • The Exponential Time Hypothesis says that 3-SAT needs time that grows exponentially in the number of variables. It is a stronger statement than P ≠ NP: if it is true, then P ≠ NP. Papers from Anthropic and OpenAI posted on October 26, 2026 claim to refute it, by giving a method whose running time grows more slowly than any exponential, written 2^o(n), though as far as anyone knows still far slower than any polynomial. That would leave P vs NP open, because a method can beat every exponential and still be far too slow to show P = NP, as one taking about 2^√n steps would.
  • VP vs VNP is the algebraic version of P vs NP, for computations that may only add and multiply. Anthropic's paper of November 23, 2026 claims to prove VP ≠ VNP, and so does a manuscript OpenAI posted the same day. No implication from that to P ≠ NP is known.

I use Claude, Anthropic's AI model, for my own research. I do not work for Anthropic.

Short answers

What is P vs NP in simple terms?

It asks whether every yes-or-no problem whose yes answers can be checked quickly by a computer can also be solved quickly. "Quickly" means in polynomial time: a number of steps that grows at most like a fixed power of the input size.

Has P vs NP been solved?

No. As of November 2026 no proof either way has been accepted, and the Clay Mathematics Institute lists it as an unsolved Millennium Prize Problem with a $1 million prize.

Did AI solve P vs NP?

No. AI-written papers posted in autumn 2026 claim results on two nearby problems, the Exponential Time Hypothesis and VP vs VNP, and neither paper settles P vs NP, as the papers themselves say.

What would happen if P = NP?

Every problem whose answers are quick to check would also be quick to solve in polynomial time. If the method were practical, many search problems would become easy and much of today's cryptography would be at risk; if it were nonconstructive or had a huge exponent, little would change in practice. Most researchers expect that P ≠ NP. A longer answer is on the page What would happen if P = NP?

Why do most computer scientists believe P ≠ NP?

Decades of failed searches for fast methods, and the fact that none of thousands of NP-complete problems has turned out to be in P. In William Gasarch's 2019 poll, 88 percent of respondents (109 of 124) said P ≠ NP.

Is factoring NP-complete?

It is not believed to be. Its yes-or-no version is in both NP and coNP, so if it were NP-complete, NP would equal coNP, which most researchers believe is false. Shor's 1994 quantum algorithm factors in polynomial time on a quantum computer.

What is an NP-complete problem?

A problem in NP that every other problem in NP can be translated into in polynomial time, such as 3-SAT, subset sum or Sudoku on boards of any size. A fast method for any one of them would give fast methods for all of NP.

Did this make sense?

Was this helpful?

Share this page