Solved Euler Problem # 3