My Project Euler solutions, mostly C++ and Ruby