Project euler problems 9 and 10.