English, asked by doydlhdlxl, 1 year ago

write a prgrm to check a no is prime or not.​

Answers

Answered by Anonymous
2

hope it helps u. . . . . . . .

Attachments:
Answered by Kaustav26
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