1. Write a program to find whether a given number is prime or not
Answers
Answered by
0
Answer:
nmmmkkzmmsmzmzkkzkkzkzkzk
Answered by
1
Answer:
num = int(input("Enter a number: "))
if num > 1:
for i in range(2,num):
if (num % i) == 0:
print(num,"is not a prime number")
print(i,"times",num//i,"is",num)
break
else:
print(num,"is a prime number")
else:
print(num,"is not a prime number")
Similar questions
Hindi,
1 month ago
English,
1 month ago
Science,
1 month ago
Social Sciences,
3 months ago
Math,
9 months ago