I am interested in constructing a subgroup of $S_n$ of size on the order of $\Theta(\sqrt{n!})$. The algorithm to construct such a subgroup should ideally also take around $O(\sqrt{n!})$ time.
One simple solution is to just choose $S_k$, $k < n$ such that $k!$ is around $\sqrt{n!}$. There is guaranteed to be a $k$ such that $\sqrt{n!} \leq k! \leq n \sqrt{n!}$ just by a simple counting argument. However, I am wondering if there is an entirely different idea that could construct a subgroup for any arbitrary $S_n$ that is tightly of size $\Theta(\sqrt{n!})$.
Any reference material such as textbooks or papers would be appreciated.