Euler problems completed in C++