Removed redundant $ in 57.
More readable comparison by number of digits.
Use boxed vectors of Integers instead of lists.