TITLE: How was the importance of the zeta function discovered?
QUESTION [21 upvotes]: This question is similar to Why do zeta functions contain so much information? , but is distinct. If the answers to that question answer this one also, I don't understand why.
The question is this: with the benefit of hindsight, the zeta function had become the basis of a great body of theory, leading to generalizations of CFT, and the powerful Langlands conjectures. But what made the 19th century mathematicians stumble on something so big? After all $\sum \frac{1}{n^s}$ is just one of many possible functions one can define that have to do with prime numbers. How and why did was the a priori fancifully defined function recognized as being of fundamental importance?

REPLY [14 votes]: Andre Weil has an article called "Prehistory of the zeta function" (reviewed by Jutila on mathscinet). I read this article many years ago, but this is basically what I remember of its content. Apparently the divergence of the harmonic series was known in 1650. Euler computed the special values at even integers and derived some kind of a functional equation. He also proved the Euler product formula and gave a proof of the infinitude of prime numbers using the Euler product. Dirichlet defined general L functions that now bear his name but only for real s>1. Riemann extended the definition  of the zeta function to all complex values and proved the functional equation. According to Weil there were other people who had proved functional equations for functions that were closely related to the zeta function (namely, Malmstén, Schlömilch and Clausen from the review), but perhaps Riemann's contribution is the singular paper that established the importance of the zeta function as an important object to study. Weil believes that Riemann was influenced by his discussion with Eisenstein.