Solved Project Euler #7