Luhn algorithm: Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Visual edit Mobile edit Mobile web edit
Undid revision 1175695821 by Juice696969 (talk)
Line 104:
The following function takes a card number, including the check digit, as an array of integers and outputs '''true''' if the check digit is correct, '''false''' otherwise.
 
'''function''' isValid(cardNumber[374343473536466length1..length])
sum := 0
parity := length mod 2