Kummer developed the theory of algebraic integers in an attempt to save a flawed proof of Fermat's last theorem by Lamé, as explained here:
Carlo Beenakker
- 188.1k
- 18
- 448
- 651