Chapter 2 · 1918 – 1940s

Turing and the Codebreakers

During World War II, armies sent secret messages scrambled by clever machines. Teams of puzzle solvers raced to unscramble them, and along the way they helped invent the computer!

1918

Enigma: a typewriter that scrambles letters

A German engineer, Arthur Scherbius, invented a machine that looked like a typewriter in a wooden box. Press A, and a different letter lights up, maybe Q. Press A again, and you get another letter!

Inside were spinning wheels called rotors that changed the code with every key press. The German army and navy later used Enigma to send secret orders. There were so many possible settings that .

1932

The Polish puzzle solvers

The first people to crack Enigma were three young mathematicians from Poland: Marian Rejewski, Jerzy Różycki and Henryk Zygalski. Rejewski used maths to work out how the secret wiring inside the rotors was connected, without ever seeing the machine.

In 1939, just before the war started, they shared everything they knew with British and French codebreakers. Their gift gave everyone a head start.

1936

Turing’s imaginary machine

A young English mathematician, Alan Turing, asked a big question: what can be calculated by following simple rules? To answer it, he imagined a machine that reads and writes symbols on a very long paper tape, one square at a time.

This Turing machine only existed on paper, but it described what every computer does: follow instructions, step by step. Today we still use it to explain what computers can and cannot do.

1939–1940

Bletchley Park and the Bombe

When the war began, Britain gathered its best puzzle solvers at a big country house called Bletchley Park. Everything there was top secret. Turing and Gordon Welchman designed the Bombe, a wardrobe-sized machine full of spinning drums.

The Bombe tested Enigma settings much faster than people could. When it found a match, codebreakers could read messages that had been sent the same day.

1939–1945

Thousands of secret helpers

By the end of the war, about 10,000 people worked at Bletchley Park, and around three out of four of them were women. They ran the machines, sorted messages and solved codes. Some new workers were even found .

Everyone promised to keep the work secret, and most of them didn’t tell their own families for more than 30 years.

1941

Zuse’s Z3 in Berlin

Far away in Germany, an engineer named Konrad Zuse was building calculating machines in his parents’ living room. In 1941 he finished the Z3. It used about 2,600 clicking switches called relays, and it read its instructions from holes punched in old movie film.

The Z3 is often called the first working programmable computer. It was destroyed in a bombing raid in 1943, but a copy was built later and is in a museum in Munich.

1944

Colossus, the electronic codebreaker

Some German messages used an even harder machine called Lorenz. To beat it, engineer Tommy Flowers built Colossus, using about 1,600 glowing vacuum tubes instead of moving parts. It was electronic, so it was super fast: it read 5,000 characters every second from a paper tape.

Colossus was one of the first electronic computers in the world. But it was so secret that .

Bit’s big idea: codebreaking needed speed, so people built machines that could try millions of possibilities. After the war, asked an even bigger question: can machines think? We’ll come back to that in the last chapter.

Quick quiz: true or false?

1 / 5

  1. Polish mathematicians were the first to crack Enigma messages.

Did you know?

  1. The word “calculate” comes from the Latin word calculus, which means “small pebble”. People once counted with stones!
  2. For hundreds of years, “computer” was a job, not a machine. Computers were people who did long calculations by hand.
  3. Apollo astronauts took small slide rules with them on their trips to the Moon, just in case.
  4. Blaise Pascal was only about 19 years old when he started building his calculating machine.
  5. In 1703 Gottfried Leibniz published a paper about counting with only two digits, 0 and 1. Today every computer works this way!
  6. In 1991, a museum in London built Babbage’s Difference Engine No. 2 from his old drawings. It worked perfectly, about 150 years late!
  7. Ada Lovelace Day is celebrated every October to honour women in science, technology, engineering and maths.
  8. An army Enigma machine could be set up in about 158 quintillion ways. That’s 158 followed by 18 zeros!
  9. In 1942 a British newspaper held a crossword contest. People who solved it in under 12 minutes were secretly invited to help the codebreakers.
  10. After the war, most Colossus machines were taken apart and their plans were destroyed. The world only learned about them in the 1970s.
  11. Alan Turing was also a great runner. He finished a marathon in 2 hours and 46 minutes, almost fast enough for the Olympics! Since 2021 his face is on the British £50 note.
  12. ENIAC weighed about 27 tonnes. That’s about as heavy as four elephants!
  13. In 1947, Grace Hopper’s team found a moth stuck in the Harvard Mark II computer. They taped it into their notebook and wrote: “First actual case of bug being found.”
  14. In 1952, Sandy Douglas made OXO, a noughts and crosses (tic-tac-toe) game for EDSAC. You played against the computer!
  15. The MESM was built in Feofaniya, near Kyiv, in a building that once belonged to a monastery.
  16. On election night in 1952, UNIVAC predicted on TV that Eisenhower would win the US presidential election by a lot. People didn’t believe it at first, but the computer was right!