C++ solution to Problem 02 of Project Euler.