projecteuler 70 solution - tooooo long solution