Let $\mathbb{N}$ denote the set of positive integers, and let ${\bf P}\subseteq {\mathbb N}$ be the set of prime numbers. For $a\in \mathbb{N}$ let $$p(a) = \{p\in {\bf P}: (\exists k\in\mathbb{N})k\cdot p = a\}.$$ So we have $p(1)=0$, and $p(n) > 1$ for $n\in\mathbb{N}\setminus\{1\}$.
For $n\in \mathbb{N}$, let $\text{med}(n)$ be the median of the set $\{p(a): 1\leq a \leq n\}$.
Questions. Is the sequence $(\text{med}(n))_{n\in\mathbb{N}}$ bounded? If yes, does it have a limit, and is the (integer) value of the limit known?