User blog comment:Primexit/Math problem of the week (3)/@comment-29331244-20151211133700/@comment-24808864-20151213013433

More clear solution, plus I used the editor I am more comfortable with: