Check if a number is prime.
num = 17
Prime
Time: 2s · Memory: 256 MB
Loop till square of root of the number.
> Run your code to see console output.