"Copy" this given code and "Paste" it on the python display to run the programme.
👇👇👇👇👇
n=int(input("Enter Number:"))
flag = True
for i in range(2,n):
if n%i==0:
print(n,"Is divisible by", i )
flag=False
if flag==True:
print(n, "Is a Prime Number")
else:
print(n,"Is Not Prime Number")
Comments
Post a Comment