Solved projecteuler problem 67.