Dynamics and Analytic Number Theory