The theorem I am referring to is the following:
If $m$ and $n$ are integers, and $p$ is a prime number such that $4 \mid p - 3$, then the exponent of $p$ in the prime decomposition of $m^2 + n^2$ is even.
I can prove this using Fermat's Little Theorem (FLT), but I am looking for a more elementary proof.
This is because, in a book on (very) elementary number theory1, the reader is asked to prove this theorem as an exercise, and by this point the book has not covered anything remotely like FLT (or any modular arithmetic, for that matter).
In fact, by this point, this book has only covered the Euclidean algorithm, Bézout's identity, the uniqueness of prime decomposition, and some basic facts about Gaussian integers (including the uniqueness of the prime decomposition of Gaussian integers). The book has also stated, without proof, that an odd prime integer $p$ can be expressed as the sum of two squares if and only if $4 \mid p - 1$.
For what it's worth, at the point where I would otherwise apply FLT, I have reduced the problem to an equality of the form
$$ a^2b = c^2 + d^2$$
...where, $a$, $b$, $c$, and $d$ are integers, $\gcd(c, d) = 1$, and $b$ is square-free, and I must show that no odd prime factor $p$ of $b$ can satisfy $4 \mid p - 3$.
1 Weissman's An illustrated theory of numbers.
Let $p$ be prime with $p\equiv 3 \mod 4.$
Consider the non-trivial case $m\ne 0 \ne n.$
(1). First we need to know that, for any $u,v,$ if $p|(u^2+v^2)$ then $p|u$ and $p|v.$ Equivalently, if $p$ does not divide both $u,v$ then $p\not\mid u^2+v^2.$
(2). Take $a,b\ge 0$ and $m',n'$ where $m',n'$ are not divisible by $p,$ and $m=m'p^a$ and $n=n'p^b.$ WLOG (without loss of generality) $a\ge b.$ Then $$m^2+n^2=p^{2b}(m'^2p^{2a-2b}+n'^2)=p^{2b}(\,(m'p^{a-b})^2+n'^2\,).$$ Now $p\not \mid n'$ so by (1), $p\not\mid (m'p^{a-b})^2+n'^2.$ So the largest power of $p$ that divides $m^2+n^2$ is $p^{2b}.$