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