write a prgrm to check a no is prime or not.
Answers
Answered by
2
hope it helps u. . . . . . . .
Attachments:
Answered by
0
Answer:
num = int(input("Enter a number"))
for i in range (2, num):
if num%1==0:
print ("it is not a prime number")
else:
print("it is a prime number)
Similar questions
English,
6 months ago
Computer Science,
6 months ago
Computer Science,
6 months ago
Science,
1 year ago
Math,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago