problem_3 from euler