(As said Russian guy proves, sometimes this heuristic fails; but your prior should be that it's likely correct.)
He had a PhD in math with enough success to be offered faculty positions at Princeton and Stanford.
The fact that he recluded from academic life after that doesn't matter.
There also is the nice example of https://en.wikipedia.org/wiki/Marjorie_Rice
Assuming you mean Ramanujan. Although he was self taught in mathematics and did much of his work outside the university setting, the vast majority of his significant discoveries and publications where made within the academic framework.
(As said Russian guy proves, sometimes this heuristic fails; but your prior should be that it's likely correct.)