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 chitrashri77
1

Answer:

num = int(input("Enter a number: ")) if num > 1: for i in range(2,num): ... print(num,"is a prime number") literally have a doubt

Answered by sakshamv294
0

Answer:

See this example:

num = int(input("Enter a number: ")) if num > 1: for i in range(2,num): ... print(num,"is a prime number")

Explanation:

Please follow me

Similar questions