Luhn Algorithm (Luhn Check)

Community Post:

Wikipedia Info:

Enter the number without the check digit
Number Reversed reverses the digit order using help from
Digit List splits the digits into a list
Every 2nd Digit ~x2 multiplies every second digit by 2 and subtracts 9 if it's larger than 9
Every Other Digit takes the opposite digits from the previous list
Check Digit
sums the Every 2nd Digit ~x2 list and the Every Other Digit list
divides that result by 10 and takes the remainder
subtracts the remainder from 10
Luhn Algorithm Check Digit
0
Number
Digit List
Every 2nd Digit ~x2
Every Other Digit
Check Digit
1
7992739871
1789372997
27649
79797
3
There are no rows in this table

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.