Analytic number theory is the branch of number theory that uses methods from mathematical analysis. Its first major success was the application of complex analysis in the proofs of the prime number theorem based on the Riemann zeta function.