Let $n=p_1^{a_1} p_2^{a_2} \cdots p_k^{a_k} \geq 12$ be any composite integer.
Then it seems that this is true: $$\pi(n) > \sum_{i=1}^{k}{\pi(p_i)a_i}\ .$$
You get equality instead iff $n$ is prime.
I also assume that if it is true, it's a known result. Can anyone point me towards a resource discussing it if so? Alternatively, if I've made a mistake and/or this is a trivial result, please point out how.
Also, if true, I think Bertrand's Postulate immediately follows:
For prime $p$, it gives $\pi(2p)>\pi(p)+1$, implying at least one prime between $p$ and $2p$.
By the same token, $\pi(3p)>\pi(p)+2$, and $\pi(p^2)>2 \pi(p)$.
(See my answer below for additional thoughts.)
Not quite complete answer:
Suppose $km=n$ with $6\le k\le m$. A result of Rosser–Schoenfeld says that $\pi(x) < 1.25506x/\log x$ for $x>1$, so $$ \pi(k)+\pi(m) \le 2\pi(m) < 2.51012m/\log m < 5.02024m/\log n, $$ since $m\ge\sqrt n$. On the other hand, another result of Rosser–Schoenfeld says that $\pi(x) > x/\log x$ for $x>17$. The fact that $n\ge17$ and $k\ge6$ now forces $$ \pi(n) > n/\log n = km>\log n > 5.02024m/\log n > \pi(k)+\pi(m). $$ On the other hand, a result of Ramanujan says that $\pi(2x) \ge \pi(x) + 2$ and $\pi(3x) \ge \pi(x) + 3$ when $x\ge6$. Therefore when $m\ge6$, \begin{align*} \pi(2m) &> \pi(m) + 1 = \pi(m) + \pi(2) \\ \pi(4m) \ge \pi(3m) &> \pi(m) + 2 = \pi(2m) + \pi(3) \\ \pi(5m) &\ge \pi(4m) \ge \pi(2m)+2 > (\pi(m)+1)+2 = \pi(m) + \pi(5). \end{align*}
In other words, we have shown that $\pi(k) + \pi(m) < \pi(km)$ for $k\ge2$ and $m\ge6$.
This should be very close to proving the entire statement by induction on the number of prime factors (counting multiplicity).