Goal: Show that $\textit{lcm}(1,...,n)\leq 3^n$.
I have shown that for every integer $n>0$ one has that the $\text{lcm}(1,...,n)=\prod_{p\leq{n}} p^{\lfloor{\log_p{n}}\rfloor}$ where $p$ are primes. Then we get that $\text{lcm}(1,...,n)\leq n^{\pi(n)}$ whereby $\pi(n)$ is prime counting function.
Can someone help me proving this bound? I thought of trying to use the prime number theorem but I seem to miss some logarithmic identities or another inequality to get the result above.