Up to the end of World War II, the vast majority of the population of Stettin were Lutheran Protestants. Historically, the number of inhabitants doubled from 6,081 in 1720, to 12,360 in 1740, and reached 21,255 in 1812, with only 476 Catholics and 5 Jews. By 1852 the population was 48,028, and 58,487 ten years later (1861), including 1,065 Catholics and 1,438 Jews. In 1885 it was 99,543, and by 1905 it ballooned to 224,119 settlers (incl. the military), among them 209,152 Protestants, 8,635 Catholics and 3,010 Jews. In the year of the invasion of Poland the number of inhabitants reached 268,421 persons according to German sources including 233,424 Protestants, 10,845 Catholics, and 1,102 Jews. The current population of Szczecin by comparison was 406,427 in 2009.
Question: What year had largest amount of inhabitants, 1812 or 1740?
Answer: 1812