Solved problem 20 (and another hooray for BigInteger)