Solved sum-of-multiples (badly)