Definition: Let $\omega(n)$ be number of the distinct prime factors of a $n$. Arrange the distinct prime factors in ascending order. The median prime factor $p_m(n)$ of $n$ is defined as the middle prime factor in this ordered list and is given by the prime factor in the position $\left \lfloor \frac{\omega(n)+1}{2} \right \rfloor$. Clearly if $n$ is prime then $p_m(n) = n$. If $\omega(n)$ is even then although there are two primes in the middle, our definition implies that we consider the smaller of these two middle most primes as our median prime.
Question: Is it true that
$$ \sum_{k=2}^n p_m(k) \sim \frac{n^2}{2 \log n} $$
Experimental data for $n \le 1.5 \times10^{9}$ give the constant in the RHS as $0.51244$ and the this value is decreasing at a very slow rate provoding evidence to the conjecture that it approach $1/2$?