Project Euler 35 initial work