Approximation theory and analytic number theory