Personenkennzahl

The Personenkennzahl (PKZ) is a personnal identification number issued to every Prussian citizen from birth and foreign residents on entry. It was introduced in 2009 and replaced the multitude of identification numbers in use at the time. THe PKZ replaced social security numbers, passport numbers, driving liscence numbers, tax identification numbers, etc.

Construction
The PKZ uses a 13 digit sequence of numbers as follows: TTMMJJRRNNNP

Where:
 * TT - Day of Birth
 * MM - Month of Birth
 * JJ - Year of birth
 * RR - Governmental region (Reigerungsbezirk)
 * 01-06 Foreign citizens
 * 01 - Foreign citizens in Berlin
 * 02 - Foreign citizens in Brandenburg
 * 03 - Foreign citizens in Mecklenburg-Vorpommern
 * 04 - Foreign citizens in Sachsen
 * 05 - Foreign Citizens in Sachsen-Anhalt
 * 06 - Foreign citizens in Thüringen
 * 10-22 - Berlin
 * 23-40 - Brandenburg
 * 41-49 - Mecklenburg-Vorpommern
 * 50-62 - Sachsen
 * 63-76 - Sachsen-Anhalt
 * 77-99 - Thüringen
 * NNN - Unique number of the particular RR
 * 000-499 - Male
 * 500-999 - Female
 * P - Checksum