C++ solutions to Project Euler problems