Solutions for Project Euler problems in C++