Find the sum of all primes that can be written both as a sum of two primes and as a difference of two primes.
(Adapted from past year Singapore Mathematical Olympiad question)
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.
Apart from 2, all the other primes are odd. Thus the difference/sum between any two primes other than 2 will be even.
Clearly 2 cannot be written as a sum of primes.
Now, we attempt to find a prime p > 2 which satisfies the given condition.
As mentioned earlier, p has to be the sum of a prime and 2 as well as the difference of a prime and 2, or else p is even and is not a prime.
( p − 2 ) , p and ( p + 2 ) are all primes. But one of them is divisible by 3. Thus, one of them has to be 3 in order for all of them to be prime. Checking, we find that only ( p − 2 ) = 3 works.
p = 5 is the only solution