prime=int(input("Enter a number:")) buffer=0 for i in range(2,prime): if prime%i==0: print(prime," is not a prime number") buffer=1 break if buffer==0: print(prime," is a prime number")