Let $$\omega(n) := \text{number of distinct primes dividing } n. $$ How can one prove that $\omega (n) = O\Big{(} \frac{\log(n)}{\log(\log(n))}\Big{)}$ as $n \to \infty$?
I know that $\omega(n)! \leq n$. I feel like I could use the Prime Number Theorem $$ \pi(x) \sim \frac{x}{\log(x)}, $$ and that $$ \pi (x) \leq 2 \frac{x}{\log(x)} = O \Big{(}\frac{x}{\log(x)} \Big{)} \quad \text{for } x \geq 3. $$
Furthermore, I know that for the primorial function $g(n) := \prod_{i=1}^{n} P_{i} $ and the prime-counting function have the following property: $ \omega(g(n)) = n = \pi(P_{n}). $
Last, I know that for the theta function defined as $$\theta (X) = \sum_{\text{primes }p \leq x} \log(p) $$ we have for the $n$'th prime $\theta(P_{n}) = \log(g(n)) $, and that $ \pi(x) \sim \frac{\theta(x)}{\log(x)}$. Finally, I know that $\theta (x) = O(x)$.
I feel that I have enough ingredients to prove what I want to prove, but I still can't figure it out. Can you please help me?