Welcome to the Monastery | |
PerlMonks |
Re: Luhn Number Golfby demerphq (Chancellor) |
on Feb 26, 2002 at 15:24 UTC ( [id://147594]=note: print w/replies, xml ) | Need Help?? |
Well this was fun. Since you werent too specific about the rules I made mine robust. It has no side effects. It runs under strictures and warnings with no complaints and it doesn't care about non digits in the passed string (ie spaces or hyphens between the groups are ignored). It comes in at 101 characters.
Yves / DeMerphq
In Section
Meditations
|
|