Joke Collection Website - Blessing messages - How to extract the ID number with the date of birth?

How to extract the ID number with the date of birth?

The method of extracting the ID number according to the date of birth is as follows:

1. Arranges birth dates in YYYYMMDD format.

2. On the basis of the date of birth, add two random numbers as the serial code. The serial number is from 00 to 99, in which the male is even and the female is odd.

According to the regulations, the last digit is the check code. The calculation method is: the first 17 digits of the ID number are multiplied by different coefficients to get the sum. These coefficients are: 7,9, 1 0,5,8,4,2,1,6,3,7,9,10,5,8.

4. Divide the obtained sum by 1 1 to get the remainder.

5. Get the corresponding parity bit according to the remainder.