Tidy Numbers solutions

Tidy Numbers was solved using Prolog by 1 contestant.