Find the smallest prime number , which can be expressed as sum of 2 primes as well as difference of 2 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.
Let the required prime be 'p'
So , p = a + b ..............(1)where , a , b are primes.
Also , p = c-d ................(2) , where , c , d are primes .
Adding (1) , (2) , we get
2p = a + b + c - d ...........(3)
so , 2 divides a + b + c - d.
Let m = a + b + c , n = d
So , 2 | m - n , Either both m , n are odd or both are even.
1)If m is odd , a + b + c is odd , which means ,
(i) 2 of a,b,c are even and other is odd , which is not possible as there is only one even prime (2) .
(ii) One of a , b , c is even . let a = 2.
2) If both are even then , d = 2 ,
(iii) All are even , which is not possible.
(iv) 2 of a,b,c are odd and the other is even , and we have let a = 2.
So , we conclude that a = d =2 .
Putting a = d = 2 in (3) , we get ,
2p = b + c.
p = (b+c) / 2.
The smallest possible case is b = 3 , c = 7.
so , p = 5
I know that the question asks for smallest prime which is very easy by trial and error , but i wanted to enjoy the problem ! this would be helpful if they ask something other than smallest prime.