Fireship · @fireship
The greatest unsolved problem in computer science...
Uploaded March 9, 2026 · Length 7:05
Summary
The video explains the P versus NP problem, a famous unsolved problem in computer science, and its implications on cryptography and reality.
- p versus np problem
- computer science
- unsolved problems
- cryptography
- complexity theory
- mathematics
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
P versus NP. That this is arguably the
- 0:03
most famous unsolved problem in computer
- 0:05
science. And actually, if you're cracked
- 0:07
enough to solve it, the Clay Mathematics
- 0:08
Institute will literally give you $1
- 0:10
million. And all you have to do is come
- 0:13
up with a proof for this philosophical
- 0:14
question. If you can verify a solution
- 0:16
quickly, can you also find the solution
- 0:19
quickly? Or in other words, is
- 0:20
handcrafting a beautiful meme just as
- 0:22
easy as admiring its beauty? To me, the
- 0:25
answer seems obvious. Of course, P does
- 0:27
not equal NP. Many others believe this,
- 0:30
but nobody's been able to prove it. I
- 0:31
arrogantly set out to prove that P
- 0:33
doesn't equal NP myself and couldn't do
- 0:35
it. But what's scary, though, is that if
- 0:37
everybody turns out to be wrong and
- 0:39
somebody proves that P does actually
- 0:41
equal NP, then every password,
- 0:43
encryption key, and crypto wallet
- 0:44
becomes instantly crackable, while
- 0:46
simultaneously curing cancer and ending
- 0:48
world hunger. It would be total chaos.
- 0:50
In today's video, we'll look at the
- 0:52
weird mind-bending math behind the
- 0:54
greatest unsolved problem in computer
- 0:56
science and try to win a million dollars
- 0:58
in the process. The P versus NP problem
- 1:00
was officially defined in 1971 by Steven
- 1:03
Cook in his famous the complexity of
- 1:06
theorem proving procedures paper. But we
- 1:08
can actually go back even further to
- 1:09
1955 when mathematician John Nash warned
- 1:12
the National Security Agency that for
- 1:14
well-defined cryptography, the effort
- 1:16
needed to break a code doesn't scale
- 1:18
linear. It explodes exponentially as the
- 1:20
key gets longer. He was implying that P
- 1:23
does not equal NP. But what's crazy is
- 1:25
that there are thousands of papers,
- 1:26
decades of research, and zero proof
- 1:28
either way. But to understand why it's
- 1:30
so hard to prove, we first need to
- 1:32
understand the math behind it. P stands
- 1:34
for polomial time, which are problems a
- 1:36
computer can solve efficiently even as
- 1:38
the input gets bigger. Think about an
- 1:40
algorithm that sorts a list of names. As
- 1:42
the list gets bigger, it takes longer to
- 1:44
sort, but at a deterministic and
- 1:46
reasonable pace. When sorting a list of
- 1:48
names alphabetically, the amount of work
- 1:50
on the CPU is roughly proportional to n
- 1:52
or n login. So if the list gets 10 times
- 1:55
bigger, the computer does about 10 to 20
- 1:57
times more work. And problems that grow
- 1:59
at a reasonable pace like this are


