Check if a number is prime
7
true
Time: 2s · Memory: 256 MB
Check divisibility from 2 to the square root of the number.
> Run your code to see console output.