C++ project-euler solutions