Solution to problem5 at projecteuler.net.