Tested better solution to Euler 12