Project Euler with C++