Luhnsalgorithm 241115182419 2a0387c4
Luhnsalgorithm 241115182419 2a0387c4
By Mohamed Gamal
– Most credit cards and many government identification numbers use the algorithm as a
simple method of distinguishing valid numbers from mistyped or otherwise incorrect
numbers.
» The Egyptian national ID is a 14-digit number where the last digit is a checksum.
» The first 13 digits are used to calculate the checksum using Luhn's algorithm.