Refactor EulerProblem type to IO()