prime = False num = int(input("Enter a number: ")) if num == 1 : print("1 is not a prime number.") elif num > 1 : for i in range(2, num): if (num%i) == 0 : prime = True break if prime == True: print(num, "is not a prime number.") else: print(num, "is a prime number.") # This is the site I used to figure it out | | | # V V V # https://www.programiz.com/python-programming/examples/prime-number # # Even though I used a website, I'm still able to explain what the code does.