Project Euler 35 extra stuff