Find the sum of all prime numbers such that is also a prime number.
Note: 1 is not 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.
All primes p > 3 can be expressed in the form p = 6 k ± 1 because 6 k ± 2 is divisible by 2 and 6 k ± 3 is divisible by 3 .
Substituting this into the equation,
p 2 = 3 6 k 2 ± 1 2 k + 1 ≡ 1 m o d 3
When 2 m ≡ 2 m o d 3 , then 2 m + 1 ≡ 1 m o d 3 and 2 m + 2 ≡ 2 m o d 3
Therefore for all odd n 2 n ≡ 2 m o d 3
Hence for all p > 3 , p 2 + 2 p ≡ 0 m o d 3 and is not prime.
Therefore we only have to check the remaining cases p = 2 and p = 3
Clearly only p = 3 works which gives p 2 + 2 p = 1 7 and we are done :)