Beginning work for Euler Problem 9.