Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

dario-dsa's blog

By dario-dsa, 13 years ago, In English

Hi, I am having problem with solving this task from my math homework. If number p is prime and p^2+8 is also prime. Prove that p^3+4 is also prime number.

  • Vote: I like it
  • -4
  • Vote: I do not like it

| Write comment?
»
13 years ago, hide # |
 
Vote: I like it +38 Vote: I do not like it

Suppose that p ≠ 3. Then thus p2 + 8 is not prime and we were wrong in our assumption. Then p = 3 and p3 + 4 = 31 which is obviously prime.