Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: [golf] Kaprekar Numbers

by thospel (Hermit)
on Jul 05, 2005 at 20:20 UTC ( #472592=note: print w/ replies, xml ) Need Help??


in reply to [golf] Kaprekar Numbers

Here's a 34 for the rigorous version:

"@_"**2=~/(??{"@_"!=$`+$'&&a})/*$'
(you can make it warning free at the cost of one more character)


Comment on Re: [golf] Kaprekar Numbers
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2015-07-06 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls