Write a program to check if a number is prime.
EasyProblem Statement
Write a program to check if a number is prime.
Sample Input
num = 7
Sample Output
true
Limits
Time: 2s · Memory: 256 MB
Write a program to check if a number is prime.
num = 7
true
Time: 2s · Memory: 256 MB