The honest answer is that nobody did — not in one moment, anyway. The original reply to this question was a joke, and the real history is a relay race across centuries.
Mechanical calculating devices go back a long way, from the abacus to Pascal's tax tabulator. Charles Babbage sketched a programmable engine in the 1800s, and Ada Lovelace wrote what is generally considered the first algorithm intended for a machine. Vacuum tubes and then solid-state electronics turned those blueprints into the computers we would recognise.
So: many inventors, no single eureka.