Problem 18 and 67 from Project Euler.