Am trying to justify what I assume is a consequence of the prime number theorem but not quite getting there. Letting $\pi(n)$ be the number of primes not exceeding $n$ and $p(k)$ the $k$th prime, I think
$$S(n)=\frac 1 n \sum_{k=1}^n p(k) \sim \pi^{-1}(n/2). $$
For example, $S(100000)=622607$ and $2\pi(622607) = 101614.$
So $$\pi(S(n))\sim n/2, $$ and to some approximation $$\frac{S(n)}{\log(S(n))}\sim n/2. $$
and maybe $S(n)\sim \exp\{\frac{2}{n}S(n)\}$ but I don't see how the Taylor series works here. So I think I have goofed somewhere, though numbers seem to bear out the relation.
Edit: The hint in the comments and Eric Naslund's previous answer to related questions show that $\sum p_k \sim n^2\log n/2.$ Then it is easy to show that
$$n\cdot S(n)\sim n\pi^{-1}(n/2)\sim n^2\log n/2. $$