Computer Science, asked by kjai23233, 5 months ago

write a program to input a number and test if it is a prime number​

Answers

Answered by Anonymous
11

Answer:

{\boxed{\boxed{\bold\colorbox{cyan}{ 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 Anonymous
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