We have 3 even numbers to insert.
Since the numbers in rows, columns and diagonals are coprime, it means that the even numbers must have different row, different column and different diagonal.
Also, we have to manage the 3 even sums; a even sum can be made with E+E+E or E+O+O (where E=even and O=odd). The E+E+E case is not possible, as we already stated that the even numbers have different rows and columns. Now we know that each sum (14,22 and 24) contain only one even number.
Now we have few cases:
- Bottom-Right cell is even. Though, this excludes all the / diagonal cells from being even, which is wrong as 14 cannot be obtained as sum of 3 odd numbers. Contraddiction!
- Middle-Right cell is even. This excludes the Top-Left and the Middle cells from being even too, consequently Bottom-Left must be even! The third even cell is Middle-Top.
- Top-Right is even. Using the same logic as before, we deduce that Bottom-Middle must be even, as well as Left-Middle.
In the right column, the even number must be 6, else we wouldn't find partners for the sum. 24-6=18. The only way of making 18 is 11+7, so the right column must be a permutation of {6,7,11}, 6 not being in the bottom-right corner.
7 cannot be the bottom-right, else we wouldn't find partners for 22 (remember that one must be even).
So, 11 is forced to be the bottom-right number!
The bottom row can either be a permutation of {11,2,9} or {11,4,7}; though, we already used the 7, so the only possible bottom is permutation of {2,9,11}.
If 9 was the bottom-left, we would have serious problems with the diagonal sum 14, so the number 2 is in the bottom-left corner, forcing 6 to be middle-right and 4 to be top-middle. Current situation is
? 4 7
? 5 6
2 9 11
3 cannot be in the 2nd row because 6 is present, so the final answer is:
3 4 7
1 5 6
2 9 11