2

I'm trying to figure out how to prove that if $p$ and $p^2+2$ are prime numbers then $p^3+2$ is a prime number too. Can someone help me please?

jwc845
  • 661
Ergo
  • 501

2 Answers2

9

If $p=2$, then $p^2+2$ is not prime.

If $p=3$, then $p^2+2 = 11$, then $p^3+2=29$ is prime.

If $p>3$, then $p \equiv \pm 1 \pmod 3$, then $p^2+2 \equiv 0 \pmod 3$. So, $p^2+2$ is not prime.

rubik
  • 9,344
GAVD
  • 7,296
  • 1
  • 16
  • 30
1

You can use the difference of squares formula to get that $p^2 + 2 = (p+1)(p-1) + 3$. Since $p^2$ is prime, $(p+1)(p-1)$ cannot have a factor $3$ as it would imply that $p^2 + 2$ is divisible by $3$ hence not a square. Among three consecutive integers one has to be divisible by $3$. Since neither $p+1$ or $p-1$ is divisible by $3$, $p$ must be. $p$ is a prime number and the only prime divisble by $3$ is $3$ itself, hence $p =3$ and $p^3 + 2 = 29$, a prime.

Lonaldin
  • 193
  • 8
user728603
  • 11
  • 1
  • Welcome to Math Stack Exchange. Your answer may be easier to read and more likely to be voted on if you edit your post using this tutorial to make it easier to read. – jwc845 Nov 24 '19 at 18:05