Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: (Golf) Kaprekar's Process

by tachyon (Chancellor)
on Jun 17, 2001 at 10:54 UTC ( #89143=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub a {
      ++$a;$_=join"",sort pop=~/./g;$_!=459?a(-$_+reverse):$a
    } 
    
  2. or download this
    sub a {
      ++$a;($_=join"",sort pop=~/./g)!=459?a(-$_+reverse):$a
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://89143]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2016-07-26 22:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (240 votes). Check out past polls.