1

I am trying to solve the following problem:

  • Find all $n$ such that $n,n+2,n+4$ are all prime.

I know $n=3$ works but no other $n$ works. I suspect the answer is as following: If $p$ and $q$ are different primes, then $p\not\equiv 0 \pmod q$, otherwise $p$ would be a multiple of $q$. Then we have:

$$n\equiv n \pmod 3\\ n+2\equiv n+2 \pmod 3\\ n+4\equiv n+1 \pmod 3 $$

So, testing for $n=3$, we see that no other possibility exists because at least one of them must be multiple of $3$ greater than $3$. Is that correct?

Red Banana
  • 23,956
  • 20
  • 91
  • 192

0 Answers0