r/ProgrammerHumor • • 10h ago

Meme doesPEqualNp

Post image
658 Upvotes

26 comments sorted by

181

u/idimetrix 10h ago

bool("p != np") also returns True so congrats, you've proven both

61

u/Mewtwo2387 10h ago

does this disprove the axiom of choice

10

u/AZMPlay 8h ago

Congratulations, jackass!

The ZFC axioms are inconsistent because of you!

Now we gotta start math all over again...

I swear some people...

8

u/InvisibleMoonWalker 8h ago

Let's fix this. First we have to make sure that p and np are initialized as null variables to avoid getting garbage from the memory (as a former c programmer it's very important not to skip this step).

Then we'll set up our solver to find out if P is NP like this:

>>> exec("p = None; np = None; exec('print(bool(p == np))')")
True
>>> exec("p = None; np = None; exec('print(bool(p != np))')")
False

And here it is - proof that P is NP and that P is not not NP. (Note that the fact that variables p and np were initialized with the same value doesn't affect the solver's search for the result, as we've set the values to nulls, and not some arbitrary numerical value, so it will be found in the process of solving this mathematical conundrum)

You can try this out with your own Python interpreter for verification. Frankly I don't understand how scientists haven't figured that out before, it doesn't even take that long to calculate.

19

u/itzjackybro 10h ago

congratulations, python is inconsistent

9

u/iggy14750 9h ago

Congratulations, Turing was wrong lol

2

u/Vallee-152 8h ago

Maybe == and != Don't mean what we think

1

u/random314 9h ago

Also "p == np" returns true too!

1

u/chazzeromus 7h ago

this guy is everywhere!

1

u/WernerderChamp 6h ago

bool("False == True")

Congrats, the very fundamentals of logic are broken.

1

u/facebrocolis 2h ago

Maybe it's an easter egg

128

u/haha-longboi 10h ago

Brother i think you just popped the AI bubble 💀

17

u/yourfriendlyreminder 10h ago

Pack it up we're done here

9

u/hopeless__programmer 10h ago

Rookie mistake: you should've written p == np. Instead, you just assigned np to p!

15

u/AsaKeyholderUK 10h ago

Someone definitely wrote this at 3am and thought they were the funniest person alive, and honestly they were right

5

u/Individual_Win_3417 10h ago

Quick, send it to the Clay Institute. A million dollars for one line of python

4

u/elmanoucko 10h ago

f(a)*c*t/s

3

u/blaghed 8h ago

fat cunts?

4

u/RomanOnARiver 10h ago

Million dollar prize, heading your way.

3

u/Smalltalker-80 9h ago

The power of Python never ceases to amaze...

2

u/Rough-Interest60 2h ago

genuinely kinda funny

2

u/MothMatron 2h ago

Aight, looks solved to me. Pack it up guys, we can all go home now

1

u/MagicalPizza21 10h ago

Only if p=0 or n=1

1

u/Complete_Window4856 10h ago

Enough for binary computing

-1

u/589ca35e1590b 9h ago

A bool of an non empty string in Python is always True