0

I tried to solve this question but without a success: Let $p$ be a prime number,and $p^2+2$ is also prime, prove that $p=3$.

I tried to show $p^2+2$ as a product of numbers and then to show that $p=3$ is the only option that allows it to be prime. but I didn't find that presentation.

I would like to get help with this question, thanks

Ben
  • 31

1 Answers1

5

if $p$ is not $3$ then $\gcd(p,3)=1$ so $3$ divides $(p-1)(p+1)$ hence $3$ divides $p^2-1+3=p^2+2$ so $p^2+2$ is not a prime

mathlove
  • 139,939
Elaqqad
  • 13,725