*Griff*), your code is broken. Try instead

```
num = int(input("enter a number "))
i = 2
prime = True
while num > i:
if num % i == 0:
prime = False
break
i += 1
if prime == True:
print("number is a prime number")
else:
print("Number is not a prime number")
```

Please note, this is a particular inefficient way to establish if a number is prime.[Update]

As

*0x01AA*gently :-) suggests, you may also write

```
if prime:
print("number is a prime number")
else:
print("Number is not a prime number")
```

[/Update]