Solutions to problems on projecteuler.net, in C++