Beginning Project Euler 4