solutions for project euler in C++11 (clang++)