problem 3 from site: http://projecteuler.net/