Euler 78 Coin Partitions - very ashamed I cheated a bit