Let $\{a_n\}$ be a non-decreasing sequence of positive integers. For any positive integer $k,$ there are exactly $k$ terms in the sequence equal to $k.$ Let $S_n$ be the sum of first $n$ terms. How many prime numbers are there in the set $\{S_1,S_2,\ldots\}?$
My initial thought was to find a pattern of sorts, so I got \begin{align*} S_1 &= 1 \\ S_2 &= 3 \\ S_3 &= 5 \\ S_4 &= 8 \\ S_5 &= 11 \\ S_6 &= 14 \\ S_7 &= 18 \\ S_8 &= 22 \\ & \vdots \\ \end{align*} I noticed that after a certain $S_n,$ all the numbers seemed to be composite no matter what. However, I wasn't quite sure how to prove this, so can somebody help me?