in reply to Re: Re: Re: Re: (Golf) Kaprekar's Processin thread (Golf) Kaprekar's Process
sub a { $_=pop;s/^..$/0$&/;/495/?0:1+a(-($_=join'',sort/./g)+reverse) } [download]
The 15 year old, freshman programmer, Stephen Rawls