Project euler 9