Let p is prime. In this question and answer (Intuition for the prime number theorem), they approximate $ \prod_{p\leq n} (1-1/p)^{-1} \approx \sum_{i=1}^n 1/i$. This is well known way to get the intuition of prime number theorem. However, I'm not convinced well.
How to know that the order of $$ \left( \prod_{p\leq n} (1-1/p)^{-1} - \sum_{i=1}^n 1/i \right)$$ is sufficiently small? In other words, $O(\log n)$.