DAY 11 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: "))
result = ""
i = 2
while i * i <= num:
if num % i == 0:
result = "not "
break
i += 1
if num < 2 or result...
priyachakraborty.hashnode.dev1 min read