Find the sum of all primes p such that p + 2 and p 2 + 2 p − 8 are also primes.
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.
I think one of p+4 or p-2 must equal 1 or -1
Assume that p is not equal to 3 . The p is either of the form 3 k + 1 or 3 k + 2 for some integer k .
Case 1: p is of the form 3 k + 1 . So p + 2 = 3 k + 3 = 3 ( k + 1 ) , implying that 3 divides p + 2 which cannot happen.
Case 2: p is of the form 3 k + 2 . So p 2 + 2 p − 8 = ( 3 k + 2 ) 2 + 2 ( 3 k + 2 ) − 8 which is also divisible by 3 which cannot happen.
This implies that the only possible value for p is 3. This gives p + 2 = 5 and p 2 + 2 p − 8 = 7 which are indeed primes. Thus the sum of all possible values of p is 3 .
Problem Loading...
Note Loading...
Set Loading...
For p 2 + 2 p − 8 = ( p + 4 ) ( p − 2 ) to be prime, one of p + 4 or p − 2 must equal 1 . As p must be prime the only option is that p − 2 = 1 ⟹ p = 3 , which is prime, as is p + 2 = 5 . Thus the only such prime, and hence the desired sum, is 3 .