[step:Descend from $mp$ to $p$: reduce $m$ until $m = 1$]Let $m$ be the **least** positive integer for which $mp$ is a sum of four squares, with $mp = x_1^2 + x_2^2 + x_3^2 + x_4^2$. The previous step shows $1 \leq m < p$. We aim to show $m = 1$.
Suppose for contradiction $m \geq 2$.
**Case A: $m$ is even.** Then $x_1^2 + x_2^2 + x_3^2 + x_4^2 \equiv 0 \pmod 2$. The $x_i^2$ residues mod $2$ are $0$ or $1$, and their sum is even, so an even number of the $x_i$ are odd. Relabel (pairing odd with odd, even with even) so that $x_1 \equiv x_2 \pmod 2$ and $x_3 \equiv x_4 \pmod 2$. Then
\begin{align*}
\frac{x_1 + x_2}{2},\ \frac{x_1 - x_2}{2},\ \frac{x_3 + x_4}{2},\ \frac{x_3 - x_4}{2} \in \mathbb{Z},
\end{align*}
and one verifies
\begin{align*}
\left( \frac{x_1 + x_2}{2} \right)^2 + \left( \frac{x_1 - x_2}{2} \right)^2 + \left( \frac{x_3 + x_4}{2} \right)^2 + \left( \frac{x_3 - x_4}{2} \right)^2 = \frac{x_1^2 + x_2^2 + x_3^2 + x_4^2}{2} = \frac{mp}{2}.
\end{align*}
So $(m/2)p$ is a sum of four squares. Since $m/2 < m$ and $m/2 \geq 1$ (using $m \geq 2$), this contradicts minimality of $m$.
**Case B: $m$ is odd (and $m \geq 3$).** For each $i$, define $y_i$ to be the unique integer with
\begin{align*}
y_i \equiv x_i \pmod m, \qquad -\frac{m}{2} < y_i < \frac{m}{2}.
\end{align*}
Then $|y_i| \leq (m-1)/2$ (since $m$ is odd), and
\begin{align*}
y_1^2 + y_2^2 + y_3^2 + y_4^2 \equiv x_1^2 + x_2^2 + x_3^2 + x_4^2 = mp \equiv 0 \pmod m.
\end{align*}
Write $y_1^2 + y_2^2 + y_3^2 + y_4^2 = m m'$ with $m' \geq 0$. We have
\begin{align*}
m m' = \sum_i y_i^2 \leq 4 \left( \frac{m-1}{2} \right)^2 < m^2,
\end{align*}
so $m' < m$. Moreover, $m' > 0$: otherwise all $y_i = 0$, which means $m \mid x_i$ for all $i$; then $m^2 \mid \sum x_i^2 = mp$, i.e. $m \mid p$, contradicting $1 < m < p$ with $p$ prime.
Now apply Euler's four-square identity to the product
\begin{align*}
(mp)(m m') = (x_1^2 + x_2^2 + x_3^2 + x_4^2)(y_1^2 + y_2^2 + y_3^2 + y_4^2) = z_1^2 + z_2^2 + z_3^2 + z_4^2,
\end{align*}
with
\begin{align*}
z_1 &= x_1 y_1 + x_2 y_2 + x_3 y_3 + x_4 y_4, \\
z_2 &= x_1 y_2 - x_2 y_1 + x_3 y_4 - x_4 y_3, \\
z_3 &= x_1 y_3 - x_2 y_4 - x_3 y_1 + x_4 y_2, \\
z_4 &= x_1 y_4 + x_2 y_3 - x_3 y_2 - x_4 y_1.
\end{align*}
Each $z_j$ is divisible by $m$. Indeed, modulo $m$ we have $y_i \equiv x_i$, so
\begin{align*}
z_1 &\equiv x_1^2 + x_2^2 + x_3^2 + x_4^2 = mp \equiv 0 \pmod m, \\
z_2 &\equiv x_1 x_2 - x_2 x_1 + x_3 x_4 - x_4 x_3 = 0 \pmod m,
\end{align*}
and similarly $z_3, z_4 \equiv 0 \pmod m$. Writing $z_j = m w_j$ with $w_j \in \mathbb{Z}$:
\begin{align*}
m^2 m' p = \sum_j z_j^2 = m^2 \sum_j w_j^2,
\end{align*}
so $m' p = w_1^2 + w_2^2 + w_3^2 + w_4^2$. Since $1 \leq m' < m$, this contradicts minimality of $m$.
Both cases yield a contradiction, so $m = 1$. Hence $p = x_1^2 + x_2^2 + x_3^2 + x_4^2$ is a sum of four squares.[/step]