Add solution to Project Euler #5.