Show there are infinitely many primes of the form $5k+1$. This question already has answers here: Infinitely many primes $5n+1$, I am trying to follow Thomas Andrew's answer.
Why does $m^5-1\equiv 0$ imply $p\equiv 1 \pmod{5}$, because $m\neq 1 \pmod{5}$.