Starting solution for Project Euler problem 4