↓ Skip to main content

“Running this gives us a nice 40 GB file which contains all 4.2 billion comparisons needed to determine if any 32 bit number is even or odd!”

Blabbin’andreasjhkarlsson.github.io ↗

The joke starts with a programmer checking odd and even with if statements, and ends with a 40 GB binary mapped into memory. The C version hit 330 GB of source before MSVC ran out of heap. The finished program answers in about 10 seconds near 2^32. That is still faster than some production APIs.