I am willing to give a general audience lecture about prime factorization, and opening towards the lack of unique factorization in the case of e.g. $\mathbb{Q}(\sqrt{5})$. However, I have two issues :
- how to introduce $\mathbb{Q}(\sqrt{5})$ naturally (for general audience or high-schoolers)? They don't have naturally complex numbers, but maybe I can stay murky about it, or say it is the least we can do to solve $x^2-5=0$ (why is this equation important, though?)
- are there nice, yet accessible, applications (e.g. geometrically, or in cryptography, etc.) of the unique factorization in such fields?
This is how I would do it.
Explain what it meant to be prime or irreducible.
Tell them, preferably with a justification, that there are numbers, such as $\sqrt2, \sqrt3, \cdots$, that are not rational. But be cautious not to go beyond positive square roots.
That gives you a way to expand the horizon by adding these extra numbers, one at a time. Like $\mathbb{Z}[\sqrt2], \mathbb{Q}[\sqrt2],$
Also, $\mathbb{Z}[\sqrt6]\subset\mathbb{Z}[\sqrt2][\sqrt3]$ while $\mathbb{Q}[\sqrt6]=\mathbb{Q}[\sqrt2][\sqrt3]$
Tell them, while this gives you some extra freedom (I would show them that $\mathbb{Q}[\Delta]$ is where the solutions of a rational quadratic equation with discriminant $\Delta$ lives or casually mention something like this), sometimes you lose some nice algebraic properties. For example $\mathbb{Z}[\sqrt5]$ is not a unique factorization domain. $$(3-\sqrt5)(3+\sqrt5)=2^2$$
I wouldn't talk about complex numbers or Gaussian integers at all. Later when they see complex numbers, they will remember your talk.