The Ancient Babylonians had known about Pythagoras' theorem over 1,000 years before he was even born.