The Foundry · Level 1

The Adder

You wired a single gate. Now wire two of them into a circuit that does real math.

How can a switch do math?

It already can. Adding two single only has four answers, and a couple of know them all by heart.

One column at a time. When you add big numbers you do one column, then carry into the next: 7 + 5 is 2, carry 1. A computer adds the same way, one column at a time, in 1s and 0s. The machine that adds a single column is called a half-adder, and you are about to build one.
🔭 Why only four answers?
Each input is just on or off, so two inputs have only four combinations: 0+0, 0+1, 1+0, and 1+1. A circuit that gets four cases right every single time, billions of times a second, is all a computer needs to start counting.

← The Foundry · every fact here is real science, kept simple. Tap the underlined words to dig deeper.