reduced number of iterations over the digits, improving time by .2 in very unscientific testing