I feel as though I have to use mods, but I'm not sure how exactly to go about this one.
2026-03-30 05:29:11.1774848551
How to prove if $m$, $m + 2$, $m + 4$ are all primes, then $m = 3$
108 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
4
You don't have to use mods but they do make things much simpler.
Suppose $m$ is a positive prime other than 3. Then $m \equiv 1$ or $2 \pmod 3$. In the former case, $m + 2 \equiv 0 \pmod 3$ so it's clearly composite. In the latter case, $m + 4 \equiv 0 \pmod 3$, so again we have a composite.
This leaves $m \equiv 0 \pmod 3$ as the only viable possibility, but then $m$ has to be 3 in order to be prime.
Alternatively you can do things "algebraically": instead of $m \equiv 1 \pmod 3$ you say $m = 3k + 1$, for example.