Find all primes $p$ for which $2017^{p-1}+p^3$ is a perfect square.
Note that $p \neq 2017$ and let $2017^{p-1}+p^3 = k^2$ for some integer $k$. By Fermat's Little Theorem, $2017^{p-1} \equiv 1 \pmod{p}$ and so $$2017^{p-1}+p^3 \equiv 1 \pmod{p}.$$ Thus $k = \pm1+pm$ for some integer $m$. If $k = 1+pm$, then $$2017^{p-1} = 1+2pm+p^2m^2-p^3 = 1+p(2m+pm^2-p^2)$$ and therefore $$2017^{p-1}-1 = p(2m+pm^2-p^2).$$
I didn't see how to continue from here.