Fireship · @fireship

The greatest unsolved problem in computer science...

Uploaded March 9, 2026 · Length 7:05

The greatest unsolved problem in computer science...

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.

  1. 0:00

    P versus NP. That this is arguably the

  2. 0:03

    most famous unsolved problem in computer

  3. 0:05

    science. And actually, if you're cracked

  4. 0:07

    enough to solve it, the Clay Mathematics

  5. 0:08

    Institute will literally give you $1

  6. 0:10

    million. And all you have to do is come

  7. 0:13

    up with a proof for this philosophical

  8. 0:14

    question. If you can verify a solution

  9. 0:16

    quickly, can you also find the solution

  10. 0:19

    quickly? Or in other words, is

  11. 0:20

    handcrafting a beautiful meme just as

  12. 0:22

    easy as admiring its beauty? To me, the

  13. 0:25

    answer seems obvious. Of course, P does

  14. 0:27

    not equal NP. Many others believe this,

  15. 0:30

    but nobody's been able to prove it. I

  16. 0:31

    arrogantly set out to prove that P

  17. 0:33

    doesn't equal NP myself and couldn't do

  18. 0:35

    it. But what's scary, though, is that if

  19. 0:37

    everybody turns out to be wrong and

  20. 0:39

    somebody proves that P does actually

  21. 0:41

    equal NP, then every password,

  22. 0:43

    encryption key, and crypto wallet

  23. 0:44

    becomes instantly crackable, while

  24. 0:46

    simultaneously curing cancer and ending

  25. 0:48

    world hunger. It would be total chaos.

  26. 0:50

    In today's video, we'll look at the

  27. 0:52

    weird mind-bending math behind the

  28. 0:54

    greatest unsolved problem in computer

  29. 0:56

    science and try to win a million dollars

  30. 0:58

    in the process. The P versus NP problem

  31. 1:00

    was officially defined in 1971 by Steven

  32. 1:03

    Cook in his famous the complexity of

  33. 1:06

    theorem proving procedures paper. But we

  34. 1:08

    can actually go back even further to

  35. 1:09

    1955 when mathematician John Nash warned

  36. 1:12

    the National Security Agency that for

  37. 1:14

    well-defined cryptography, the effort

  38. 1:16

    needed to break a code doesn't scale

  39. 1:18

    linear. It explodes exponentially as the

  40. 1:20

    key gets longer. He was implying that P

  41. 1:23

    does not equal NP. But what's crazy is

  42. 1:25

    that there are thousands of papers,

  43. 1:26

    decades of research, and zero proof

  44. 1:28

    either way. But to understand why it's

  45. 1:30

    so hard to prove, we first need to

  46. 1:32

    understand the math behind it. P stands

  47. 1:34

    for polomial time, which are problems a

  48. 1:36

    computer can solve efficiently even as

  49. 1:38

    the input gets bigger. Think about an

  50. 1:40

    algorithm that sorts a list of names. As

  51. 1:42

    the list gets bigger, it takes longer to

  52. 1:44

    sort, but at a deterministic and

  53. 1:46

    reasonable pace. When sorting a list of

  54. 1:48

    names alphabetically, the amount of work

  55. 1:50

    on the CPU is roughly proportional to n

  56. 1:52

    or n login. So if the list gets 10 times

  57. 1:55

    bigger, the computer does about 10 to 20

  58. 1:57

    times more work. And problems that grow

  59. 1:59

    at a reasonable pace like this are