Pierre de Fermat (1607–1665) had a day job as a lawyer and judge in southern France, and did mathematics purely for fun in his spare time — which makes it slightly infuriating that he became one of the greatest number theorists in history. He rarely published; his discoveries survive mostly as claims scribbled in letters and book margins, usually with the proof left as an exercise for everyone else, for centuries.
Fermat's fingerprints are all over the subject. His
Around 1637, reading a copy of Diophantus's Arithmetica, Fermat jotted in the margin that
the equation