Luhn algorithm: Difference between revisions

Content deleted Content added
Tag: Reverted
m Reverted edits by 197.54.159.108 (talk) (AV)
Line 126:
{
int check_digit = 0;
for (int i = digitdigits.Length - 2; i >= 0; --i)
check_digit += ((i & 1) is 0) switch
{
Line 141:
* [[Payment card number|Credit card numbers]]
* [[International Mobile Equipment Identity|IMEI numbers]]
* [[National Provider Identifier|National Provider Identifier numbers]] in the United States
* [[Canada|Canadian]] [[social insurance number]]s
* [[Israeli identity card|Israeli]] ID numbers
* [[South Africa|South African]] ID numbers
* [[Sweden|Swedish]] [[national identification number]]s
* [[Sweden|Swedish]] Corporate Identity Numbers (OrgNr)
* [[Greece|Greek]] Social Security Numbers (ΑΜΚΑ)