write a program to input a number and test if it is a prime number
Answers
Answered by
11
Answer:
Explanation:
num = int(input("Enter a number: ")) if num > 1: for i in range(2,num): ... print(num,"is a prime number")
Answered by
2
Explanation:
num = int(input("Enter a number: ")) if num > 1: for i in range(2,num): ... print(num,"is a prime number")
Similar questions