so...this is my code down below. I altered it all ways I can think of, but regardless of what I do it will ether say all the numbers are prime or all the numbers are not prime. I was hoping someone can point out the obvious error. Currently this code says all numbers are not prime. Thanks.
import math
x = int(input('Enter a number: '))
def isPrime(x):
if x==2:
print ("The number you entered is not Prime.")
return
i = 2
x = int(math.sqrt(x))
while i < x+1:
if x%i==0:
print ("The number you entered is not Prime.")
return
i = i+1
print ("This number is Prime")
return
isPrime(x)