DAY 9 of PYTHON top 100 questions : from Basic to Advanced !!
Write a Python program to check whether a given number is a prime number or not :
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")
bre...
priyachakraborty.hashnode.dev2 min read