Hyundai Number

The Hyundai Number is a national identification number used in Hyundai Country.

Composition
The format is 'HYxxxx xxxxxx xxxx xx xx'. The first group is four digits long and they represent the order number (three digits) and gender of the person (one digit, odd for male, even for female). The next group is six digits long and they represent the date of birth (in format YYMMDD), the third group of digits are generic random computerised numbers, and the fourth group of digits indicate the place of birth. The last group of digits in Hyundai number are always in the range between 01 and 97.

To verify the last group of digits of Hyundai number
The last group of digits in Hyundai number are always in the range between 01 and 97 and are derived from the subsequent 16 digits using the modulus 97 calculation.

For example, verify HY1006 990525 1463 36 82: This number (HY1006 990525 1463 36 82) is invalid because the calculating result is 07, and the remainder is not zero.
 * 1) Remove the HY- prefix and spaces: 1006990525146336
 * 2) Multiply the first individual digit by 2, the rest of the individual digits should be multiplied by the next prime number (see table)