You can download a detailed solution of the problem from
http://www.cs.utexas.edu/users/EWD/ewd06xx/EWD666.PDF .
It describes well how from the 24 possible values for Sum and much more possible combinations of the answers, the final unique answer is retrieved.
I couldn't understand the given explanation for why the numbers (4,7) do not form a solution. Here is how I conclude that it isn't the answer.
S=11, P = 52,
11 can be expressed as sum of two numbers in multiple ways as (9+2,8+3,7+4,6+5) none of which is sum of two primes.
Hence, Adam concludes that both him and Rohit do not know the numbers.
P = 52 = 2 X 26 = 4 X 13.
Rohit is confused between two combinations (2, 26) and (4, 13). Possible sums being 28 and 17.
Rohit thinks that had the sum been 28, Adam could not have concluded that I do not know the numbers, because 28 can be expressed as sum of two primes (23 + 5). Hence, Rohit is sure that the Sum is 17, and the numbers are 13 & 4.
But, the key point here is the last statement from Adam "Me too".
In this case, he is unable to conclude the numbers from Rohit's answer, because he thinks that as Sum is 11, Rohit may have:
2 X 9 = 18, 3 X 8 = 24, 4 X 7 = 28, 5 X 6 =30.
18 = 2 X 9 = 3 X 6. Possible Sums ( 11, 9) among which only 11 can't be expressed as sum of primes => possible solution for Adam
24 = 2 X 12 = 3 X8 = 4X6 . Possible Sums (14, 11, 10) among which only 11 can't be expressed as sum of primes =>possible solution for Adam
30 = 2 X 15, 3 X 10, 5 X 6. Possible Sums (17, 13, 11) among which 17, 11 can't be expressed as sum of primes.
So, overall even after Rohit's answer, Adam would have been confused between the pairs (2,9), (3, 8), (4,7).
Hence (4,7) is not the solution to the problem.
--
Shishir Mittal
Ph: +91 9936 180 121