Excluding the check digit, what is the minimum length number the luhn algorithm will work on?
My thoughts are that it would work on any number greater than 2 digits (again, excluding the check digit).
The reason I ask is this: if i iterates over all digits in the number from right to left. This causes i%2 == 0 (used to find alternate positions in the number) in my luhn validation to fail if the number is 3 digits or smaller (e.g. 125 -- which on paper seems to be a valid number)
Obviously I could change my condition from i%2== 0 to something else but if it's not the correct behavior for the algorithm it'd be nice to know.