Some project Euler solutions in C++