Project Euler with C++11