what is the luhn algorithm 
the luhn algorithm also known as the modulus 10 algorithm is a formula that is used to determine whether the identification number provided by a user is accurate the formula is widely used in validating credit card numbers as well as other number sequences such as government social security numbers ssns today the luhn algorithm is an essential component in the electronics payments system and is used by all major credit cards 