4. For any positive integer $n$, let $a_{n}$ be the smallest positive integer such that $n \mid a_{n}$!. If $\frac{a_{n}}{n}=\frac{2}{5}$, then $n=$ $\qquad$ .
4.25.

From $\frac{a_{n}}{n}=\frac{2}{5} \Rightarrow a_{n}=\frac{2 n}{5} \Rightarrow 51 n$.
Let $n=5 k\left(k \in \mathbf{N}_{+}\right)$. If $k>5$, then $5 k \mid k!$.
Thus, $a_{\mathrm{n}} \leqslant k<\frac{2 n}{5}$, a contradiction.
Clearly, when $k=2,3,4$, $a_{n} \neq \frac{2 n}{5}$.
Also, $a_{25}=10=\frac{2}{5} \times 25$, so $n=25$.