A solution to Project Euler 12 in C++.