Kummer's Theorem
As shown in this answer, Kummer's Theorem says that the number of factors of a prime $p$ that divide $\binom{n}{k}$ is the number of carries that are performed when adding $k$ and $n-k$ in base-$p$.
If $\boldsymbol{n\ne p^m}$, then there is a $\boldsymbol{k\not\in\{0,n\}}$ so that $\boldsymbol{p\nmid\binom{n}{k}}$
If $n\ne p^m$ for some prime $p$ and integer $m\ge0$, then, in base-$p$, either the highest order digit is not $1$ or there is a lower order non-zero digit.
In the first case,
$$
n=\sum_{j=0}^md_jp^j
$$
where $d_m\gt1$, so we can take
$$
\begin{align}
k
&=n-p^m\\
&=\sum_{j=0}^m(d_j-[j=m])p^j\\
&\ge(d_m-1)p^m
\end{align}
$$
so that $k\not\in\{0,n\}$ and $k+p^m=n$ with no carry, i.e. $(d_m-1)+1=d_m$, means that $p\nmid\binom{n}{k}$.
In the second case,
$$
n=\sum_{j=0}^md_jp^j
$$
where there is some $j_0\lt m$ so that $d_{j_0}\gt0$, so we can take
$$
\begin{align}
k
&=n-p^{j_0}\\
&=\sum_{j=0}^m(d_j-[j=j_0])p^j\\
&\ge d_mp^m
\end{align}
$$
so that $k\not\in\{0,n\}$ and $k+p^{j_0}=n$ with no carry, i.e. $(d_{j_0}-1)+1=d_{j_0}$, means that $p\nmid\binom{n}{k}$.
If $\boldsymbol{n=p^m}$, then for all $\boldsymbol{k\not\in\{0,n\}}$, we have $\boldsymbol{p\mid\binom{n}{k}}$
Subtracting any $k\not\in\{0,n\}$ will require a borrow from the $1$ in the $p^m$ place, so there will be a corresponding carry when adding $k$ to $n-k$. Thus, $p\mid\binom{n}{k}$.
Furthermore, there is one base-$p$ carry when adding $(p-1)p^{m-1}+p^{m-1}=p^m$, so there is only one factor of $p$ in $\binom{p^m}{p^{m-1}}$.
Conclusion
Thus,
$$
\gcd\left[\binom{n}{k}\right]_{k=1}^{n-1}=\left\{\begin{array}{}
p&\text{if }n=p^m\text{ for some prime $p$ and integer $m\gt0$}\\
1&\text{if }n\ne p^m\text{ for any prime $p$ and integer $m\gt0$}\end{array}\right.
$$