Project Euler 33 refactor and 34 answer