number = int(input("Enter number: ")) if number > 1: for i in range(2, (number//2)+1): if(number % i ==0): print("This number is not prime: ", number) break else: print("This number is prime: ", number) else: print ("This number is not prime: ", number)