As of today, most important results in mathematics are conjectured long before they are proven.
Are there any examples of (important) mathematical discoveries that were proven by chance rather than from the authors conducting a targeted research on a hypothesis? I'm interested especially in results obtained in the last 100 years or so.





Not sure if I can call this a mathematical result, as this phenomenon is far from understood, but I think that the notion of Ulam spiral is famous enough and was discovered by chance.