I don't think specifically these were the numbers.
Still to answer this question, 2 is co-prime to 5 so using Fermat's Little Theorem (or directly), $2^4 \equiv 1 \;(\text{mod } 5)$.
$$\begin{align}
2^{32}
&\equiv (2^4)^8 \quad (\text{mod } 5) \\
&\equiv 1^8 \quad (\text{mod } 5) \\
&\equiv 1 \quad (\text{mod } 5)
\end{align}$$