Heh-heh, it's kind of embarrassing to tell you my solution, which involves million steps not necessarily logical.
First: I listed on a piece of paper all possible X + Y (i.e., every integer from 5 to 39)
Second: Because X and Y cannot be both primes, I deleted from the list all even numbers as well as numbers that equal to 2 + A (where A is a prime). So I ended up with a short list of 11, 17, 23, 27, 29, 35, and 37.
Third: I asked myself: "Gosh, how many possible combinations do I have to test through trial and error?" So I came up with a little formula: floor function (X + Y) ÷ 2 - 1. For instance, there are 4 or floor [11 ÷ 2 - 1] possible combinations for a X + Y total of 11, and there are 7 for a X + Y total of 17. And I frustratedly browsed through the short list and discovered that 17 stands out like a sore thumb because it is the only one that has an odd number of possible combinations.
Forth: I broke down 17 into (2, 15 =3*5), (3, 14 = 2*7), (4 =2*2, 13), (5, 12=3*2*2), (6 =2*3, 11), (7, 10=2*5), (8=2*2*2, 9=3*3). And I noticed that (4, 13) is unique because the rest involve either three primes or times more than once.
Fifth: I tested (4, 13) and yelled BINGO.
I know it's sheer luck. But I solved it in a timely fashion, didn't I?![]()




I just have a quick finger on Wikipedia. 

You do 11111/41 and 1111111/239 but I dont know why.

Bookmarks