Added Project Euler problem 39.