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