He was the mathematician who ran through the streets shouting “Eureka!” — but that was only a glimpse of his genius.