Solutions to Project Euler problems in c++