euler problem 17 quick and dirty solution