Solve problems defined by project euler