Project Euler #8 solved using C++