Gauss and Legendre conjectured in the 1790s that primes thin out at a rate governed by the logarithm. Hadamard and de la Vallée Poussin proved it independently in 1896 by showing that the Riemann zeta function has no zeros on the line with real part 1.
The theorem says the ratio of the true count of primes to the approximation tends to 1. It does not say how large the difference is. The Riemann hypothesis is the sharpest possible answer to that second question: the difference is of the order of the square root of x.
