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