Project Euler 35 and 50 solubions.