My code determines if the number is prime or not. However, the issue is that the final else statement at the bottom will always print out PRIME because of the way my code is written. In other words, can someone please fix the final else and if statements? I know what I wrote is confusing, but it will make sense when you run it and see the issue for yourself.
Thanks in advance
def is_prime(x): if x ==2: print ("This is a prime number!") elif x ==1: print ("This is not a prime number!") elif x % 2 == 0: print ('It is not a prime number') else: for i in range(2,x): i = x / i if i == int(i): print ("This is not a prime number") break else: print("This is a prime number") is_prime(25)