Got rid of working solution. Tried to replace with general
solution, cannot generate though xrange. Will probably have to use
while loop. Or thnk of more efficient solution.