Luhn’s algorithm

Credit card numbers are not just randomly printed onto the card. They are made in a specific way to keep people from making fakes. The first digit of the number indicates the type of industry that distributed the card. The first six digits are the institution that issued the card. All other digits excluding the final digit are the person's account number. The final digit is the check digit or check sum that completes Luhn's algorithm.

 
Luhn_Algorithm.png
Previous
Previous

Banker’s Algorithm