What is the sum of all possible primes p such that p 2 + 8 is also a prime?
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.
Totally :S
Nice solution.
Nice solution.
super easy going and brilliant solution.
Did the same
p ≡ ± 1 m o d ( 6 ) ⇒ p 2 + 8 ≡ 3 m o d ( 6 ) This means that for both p and p 2 + 8 to be prime, then: p = ± 1 m o d ( 6 ) a n d p h a s t o b e o d d ∴ p = 3 a n d p 2 + 8 = 1 7 i s t h e o n l y s o l u t i o n
Can you explain how you chose p=±1mod6
Log in to reply
Every prime number is either of the form 6q+1 or 6q-1
How you choose p^2 +8=3mod(6)
Every prime greater than 3 has the form 6k-1 or 6k+1, the other forms (6k, 6k+2, 6k+3, 6k+4) are not prime. 6k+5 is the same as 6k+1. I actually thought about using this fact but was too lazy to carry It out in my head because squaring it leaves me with a 7, should have used 3k+1 and 3k+2 instead because then p^2+8 would have given 9 or 12.. much simpler.
∀ p ∈ P , p ≥ 5 , p ≡ ± 1 ( m o d 6 )
∴ if { p , p 2 + 8 } ⊂ P
Then p 2 + 8 ≡ ± 1 ( m o d 6 )
⇒ p 2 ≡ − 9 or − 7 ( m o d 6 ) ≡ − 3 or − 1 ( m o d 6 )
However, p ≡ ± 1 ( m o d 6 ) ⇒ p 2 ≡ 1 ( m o d 6 )
This is a contradiction and thus we see that there are no such primes for p ≥ 5 , so we need only check p = 2 and p = 3
p = 2 ⇒ 2 ∣ ( p 2 + 8 ) ⇒ ( p 2 + 8 ) ∈ / P
p = 3 ⇒ p 2 + 8 = 1 7 ∈ P
Therefore, the sum of all values of p that satisfy the equations is 3
Nice approach!
p 2 + 8 = p 2 − 1 + 9 = ( p − 1 ) ( p + 1 ) + 9 Considering this equation, if p is not divisible by 3 , then either p − 1 or p + 1 will be, since they are three consecutive numbers, and p 2 + 8 will not be prime. If p = 3 , then p 2 + 8 = 1 7 , so 3 is the only solution.
Let's consider
Sp, p = 3 only solution.
Using Fermat's little theorem: (note that this holds true when p is relatively prime to 3)
p 2 = 1 ( mod 3 ), therefore p 2 + 8 = 9 = 0 ( mod 3 ).
This tells us that any number that is relatively prime to 3 (which includes every prime other than 3 itself) is divisible by 3.
This means the only prime we need to test is 3. 3 2 + 8 = 17, which is prime. This tells us that the only number that works is 3 itself
Every prime p = 3 is ± 1 ( mod 3 ) . ( CRUX MOVE )
This implies p 2 ≡ 1 ( mod 3 ) and so p 2 + 8 ≡ 9 ≡ 0 ( mod 3 ) The only remaining case is p = 3 , which satisfies the condition. Thus, the answer is 3 .
Apart from number 3, that is the correct answer, for any other possible prime with the expression p^2 + 8, that result should never be equal to a multiple of 3.
Every prime number, apart from number 3 itself, is either of the form 3x + 1 or the form 3x - 1. If we substitute our original "p" by these two expressions, we get that new formed primes should be of the value 9x^2 + 6x + 9 or 9x^2 - 6x + 9, which is always going to be a multiple of 3, and therefore not prime.
Problem Loading...
Note Loading...
Set Loading...
If p is a prime it can either leave remainder of 1 or 2 when divided by 3, (or 0 in case the number is 3 itself). Now if it leaves remainder 1 then ( p 2 + 8 ) ∣ 3 ≡ 0 and if it leaves remainder 2, again ( p 2 + 8 ) ∣ 3 ≡ 0 . (Check?)
Hence the only value possible for p is 3 . Answer