Solve Project Euler Problem #12.