Logo
What's a programmer's favorite place? The foo bar!
  • 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
4 months ago 396.7K 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

WALI Single Monitor Mount for 13-34 inch Screens, Adjustable Single Monitors Arm, Regular Screen up to 32 inch, 26.4lbs, Computer Monitor Stand for Desk, VESA 75/100mm (GSMP001N), Black

WALI Single Monitor Mount for 13-34 inch Screens, Adjustable Single Monitors Arm, Regular Screen up to 32 inch, 26.4lbs, Computer Monitor Stand for Desk, VESA 75/100mm (GSMP001N), Black

Affiliate
$19.99
Every Damn Time

Every Damn Time

Backend
24.0K views 1 year ago
GearScouts.com

GearScouts.com

Sponsored
Power stations