Solve several problems in the Project Euler