All credit card numbers follow a simple mathematical algorithm and are not just any random numbers. This mathematical algorithm was created by IBM scientist Hans Peter Luhn and is known as Luhn algorithm (also known as modulus 10 algorithm). These days this algorithm is majorly used as a simple checksum to validate many identification numbers such as Credit cards and IMEI numbers. The below image will explain in detail how this algorithm works to validate a Credit Card number.
Do you like this article?