Logo
Keyboard not found. Press F1 to continue.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Ancient-algorithms Memes

Posts tagged with Ancient-algorithms

Egypt Binary

Algorithms Programming Math
9 months ago 459.3K views 0 shares
Egypt Binary
Ancient Egyptians apparently invented a multiplication algorithm that works by repeatedly doubling and halving numbers, then adding only the rows where the halved number is odd. So 13 × 24 becomes a series of doubles (24, 48, 96, 192) while halving 13 down (6, 3, 1), then you cross out rows with even numbers and add what's left: 24 + 96 + 192 = 312. It's basically binary multiplication disguised as ancient wisdom. The pharaoh smugly declaring "IT'S VERY SIMPLE!" while modern programmers realize they've been doing bit-shifting operations the whole time without the cool historical context. Turns out the Egyptians were doing bitwise operations before computers existed. They just didn't have Stack Overflow to copy-paste from.

Today's picks

UnionSine 1TB Ultra Slim Portable External Hard Drive HDD-USB 3.0 for PC, Mac, Laptop, PS4, Xbox one, Xbox 360-(Black)

UnionSine 1TB Ultra Slim Portable External Hard Drive HDD-USB 3.0 for PC, Mac, Laptop, PS4, Xbox one, Xbox 360-(Black)

Affiliate
$69.71
Can you imagine

Can you imagine

Programming
95.1K views 3 years ago
Never forget your edge cases

Never forget your edge cases

Programming
104.2K views 4 years ago