WeCodeAcademy

Check if a number is prime

Try divisors up to the square root.

Examplepython
Open in editor »

More Python recipes