Prime, Square, Cube!!!

Level pending

Let N N be the sum of all primes p p such that p 2 + 8 p^2 + 8 and p 3 + 4 p^3 + 4 are also primes. Determine the last three digits of N N .


The answer is 3.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

4 solutions

Siddharth Kumar
Dec 16, 2013

Lemma :- Every prime number except 2 and 3 are of the form 6n+1 or 6n+5. Proof :- When we take p=6n+1, neither p^8 nor p^3+4 are of the form 6k+1. Same happens when we put p=6n+5. So taking the exceptions to the lemma, we get the only possible answer is 3, because 3^2 + 8 = 17 and 3^3+4=31. So both are primes. Q.E.D.

Jubayer Nirjhor
Dec 15, 2013

Clearly 2 2 doesn't work, for p > 3 p>3 , we have... p 1 , 1 ( m o d 3 ) p 2 1 ( m o d 3 ) p 2 + 8 1 + 8 = 9 0 ( m o d 3 ) p\equiv -1,1 \pmod{3} ~~~ \Longrightarrow ~~~ p^2\equiv 1 \pmod{3} ~~~ \Longrightarrow ~~~ p^2+8\equiv 1+8=9\equiv 0 \pmod{3}

Hence, for p > 3 p>3 , p 2 + 8 p^2+8 is not prime. We have one try left which is p = 3 p=3 and so p 2 + 8 = 17 p^2+8=17 and p 3 + 4 = 31 p^3+4=31 . Therefore 3 \fbox{3} is the only solution.

Antonio Rangel
Jan 7, 2015

The sum of the digits of any prime number squared + 8 is a multiple of 3, therefore 3 is the only one solution.

If p = 3 p=3 , p 2 + 8 = 17 p^2+8= 17 and p 3 + 4 = 31 p^3+4= 31 , which are both primes. We claim that there are no other solutions. First, note that the only prime divisible by 3 3 is 3 3 itself. All primes p 3 p \neq 3 are 1 , 1 ( m o d 3 ) \equiv -1, 1 \pmod{3} , and thus p 2 1 ( m o d 3 ) p^2 \equiv 1 \pmod{3} . Note that p 2 + 8 1 + 8 0 ( m o d 3 ) p^2+8 \equiv 1 + 8 \equiv 0 \pmod{3} and p 2 + 8 2 2 + 8 > 3 p^2+8 \geq 2^2+8 > 3

It immediately follows that p 2 + 8 p^2+8 is never a prime for p 3 p \neq 3 . The sum of all possible values of p p is, thus, 3 \boxed{3} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...