Project Euler solutions, in C++11