Solved Euler Problem #9