See http://projecteuler.net/problem=12 for a description of the problem.