Upgrade subject to access all content

Among the following algorithms, find all that can detect all primes.

Select ALL that apply.

Divide $n$ by all integers $m$ with $1< m < n$. Record "$n$ is prime." if there is no such $m$ that divides $n$.

Divide $n$ by all integers $m$ with $1< m < \sqrt n$. Record "$n$ is prime." if there is no such $m$ that divides $n$.

Divide $n$ by all integers $m$ with $1 < m\leq\sqrt n$. Record "$n$ is prime." if there is no such $m$ that divides $n$.

Divide $n$ by all integers $m$ with $1 < m \leq \sqrt n$ and $m\in \{2, 3, 5, 7\}$. Record "$n$ is prime." if there is no such $m$ that divides $n$.