Rolands Kusins - 2014-02-10 08:22:17 - In reply to message 1 from H Johnson
Thank you! Made some performance improvements on my method and added yours. On my laptop, with 1 000 000 number check digit calculation there is approx 1 second improvement with algorithm you suggested.
H Johnson - 2014-02-10 17:52:54 - In reply to message 2 from Rolands Kusins
I thought it as a pretty cool algorithm when I found it, and a good example of how one can think about a problem from a very different perspective. I like you started with a much more complicated approach.
Anyway, while I don't use it currently, because my payment provider has this checker built in to their stuff, I saved it as just one of those very neat things I had seen.