So I am trying to use this formula here and is giving me some trouble.
If I just substitute $6000$ into the formula, the answer is approximately $1500$.
But the number of primes under $6000$ is clearly half that. How do you use this formula properly?
The prime number theorem doesn't say $\pi(n) = \frac{n}{\log n}$. It actually says $\lim_{n \to \infty} \pi(n) \large/ \frac{n}{\log n} = 1$, which means it gets more accurate as $n$ gets larger.