Computer Science, asked by aditya313580, 3 months ago

1. Write a program to find whether a given number is prime or not

Answers

Answered by parmodravi101
0

Answer:

nmmmkkzmmsmzmzkkzkkzkzkzk

Answered by priyangha02
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