🗺️ The recipe is the power
Why: See what an algorithm really is — and why a better recipe crushes a faster computer.
Unlocks: Search — your first famous algorithm.
You already write Python. This course is about something deeper: the recipes themselves. An algorithm is a list of steps precise enough for a machine — and here is the secret nobody tells beginners: the recipe matters more than the machine. A brilliant algorithm on a cheap phone beats a dumb one on a supercomputer. This lesson proves it.
Task: add up every number from 1 to 100. The obvious recipe — the one the frog would use — visits every number:
Now the legendary recipe. Nine-year-old Carl Friedrich Gauss saw that 1+100 = 101, 2+99 = 101, 3+98 = 101… fifty pairs, each worth 101. So the whole sum is just 100 × 101 ÷ 2:
Summing 1 to one billion: the loop does a billion additions. How many operations does Gauss's formula need?
What makes a list of steps an algorithm rather than just advice?
🔍 Where you've seen this before: the mind-reader game in Python: First Steps guessed your 1-100 number in 7 questions. That wasn't luck — it was an algorithm. Next lesson we meet its family.