Elementary and analytic theory of numbers