Ψάχνοντας για τον αλγόριθμο ελέγχου ορθότητα του ΑΜΚΑ βρήκα τον παρακάτω αλγόριθμο τον εφάρμοσα και δείχνει να δουλεύει άψογα.
2.1 Attachment Control Number (ACN) Check Digit Example
ID = 49927398716
The ACN consists of 11 numeric digits, with the last being the check digit.
Step 1:
4 | 9 | 9 | 2 | 7 | 3 | 9 | 8 | 7 | 1 | 6 |
x 2 | x 2 | x 2 | x 2 | x 2 | ||||||
18 | 4 | 6 | 16 | 2 |
Step 2:
4 + (1+8) + 9 + (4) + 7 + (6) + 9 + (1+6) + 7 + (2) + 6
Result: Sum = 70: The number is valid.
Note: The number is valid because 70 divided by 10 yields no remainder
(70 mod 10 = 0).