He did not invent the modern computer but contributed significantly to the modern theory of computation. There is no single person who invented the computer, it was a collective effort over decades, if not centuries, ref. Leibniz, Lovelace, Bool, von Neumann, Weizenbaum, and many more.