is_Prime = 4 #Declares a variable for the number to be tested
x=is_Prime #Sets the value x to the number being tested to act as the range
counter=0 #sets a variable named counter to zero
for i in range(1,x):
remainder = is_Prime%(x-1) #declares a variable named remainder and divides it by a value -1
if remainder == 0:
counter=counter+1 #if the remainder is = zero,then we add one to the counter
x=x-1
if counter>1:
print "number not prime"
else:
print "number is prime"