Find, with proof, all primes $p$ for which $p^7-2018$ is the square of a prime.
I'm pretty sure that p=3 is the only number that satisfies this, but I don't know how to prove it.
2026-02-22 17:52:51.1771782771
How do I prove this question involving primes?
122 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
Write $$ p^7 = 2018 +q^2$$ for some prime $q$.
Say $q\ne 3$, then $q^2 \equiv_3 1$, so we have $$ p^7 = 2018 +q^2\equiv_3 2+1 \equiv_3 0 $$ so $p=3$. If $q= 3$ then $$p^7 = 2027$$ which is impossible.