I am teaching an elementary number theory class, mainly for non-technical majors. Today, I mentioned $\mathbb Z[\sqrt{-5}]$ to show that unique prime factorization is not "obvious."
Is there some application (e.g. finding solutions to some Diophantine equation) they could understand which shows why mathematicians might care about the failure of unique prime factorization in $\mathbb Z[\sqrt{-5}]$?
Actually, concerning Diophantine equations we have that Fermat's equation $$ x^p+y^p=z^p $$ has no non-trivial solution for $p>2$, with an easy proof if the ring of integers $\mathbb{Z}[\zeta_p]$ of the cyclotomic field $\mathbb{Q}[\zeta_p]$ is UFD. In this context it is very enlightening that the rings $\mathbb{Z}[\zeta_p]$ have class number one, i.e., are PIDs and hence factorial if and only the prime satisfies $p\le 19$. Unfortunately, $\mathbb{Z}[\sqrt{-5}]$ is not the ring of integers of a cyclotomic field. But Fermat shows that mathematicians do care for "similar" rings being PIDs or UFDs. For example, the ring of integers $\mathbb{Z}[\zeta_3]$ for exponent $p=3$, see the introduction here.