Going through the challenges in Project Euler via C++