Project Euler: Problem 31: Coin Sums