Take a look at Re^8: Faster Luhn Check Digit Calculation? (Ignore this!) for a simpler and faster (but not exhaustively tested) algorithm.
In reply to Re^12: Faster Luhn Check Digit Calculation?
by BrowserUk
in thread Faster Luhn Check Digit Calculation?
by kschwab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |