I'm struggling something immensely to make sense of the following:
https://meiji163.github.io/post/sum-of-squares/#sums-of-two-squares
Factoring an integer in Gaussian integers is closely related to representing that integer as the sum of two squares. If we can factor $p = (a+bi)(a-bi)$ then $p=a^2 + b^2$. Moreover, if $q = (c+di)(c-di)$ is also the sum of two squares, then so is $pq$ since $$pq = ((ac-bd)+i(ad+bc))((ac-bd)-i(ac+bd)) .$$ From this we can determine all integers that can be represented as a sum of two squares by looking at the primes in its prime factorization (in regular integers). For example, $15=3 \cdot 5$ is not the sum of squares because we can’t factor the $3$ in Gaussian integers.
This should be easy, but for some reason my mind is still stuck somewhere on some trivial point. I just don't understand how you get from "if $x$ and $y$ both have property A, then so does their product $xy$" to "if $z$ has property $A$ and $x$ is a prime factor of $z$, then $x$ also has property $A$".
Someone please save me from this fog of ignorance!