0

hey everyone im making a program that takes a number (n) from the user and then decides if it is prime or not and prints that decision to the screen

```
from math import *
def main():
n=eval(input("please enter the number you wish to check:"))
n=abs(n)
if n < 2:
print("this is not a prime number")
if n == 2:
print("this is a prime number")
if not n & 1:
print("this is not a prime")
for x in range (3, int(n**0.5)+1,2):
if n%x!=0:
print("this is a prime number")
else:
print("this is not a prime number")
main()
```

my problem is that when i enter the number 2 it prints both that its a prime and not a prime. and when i use a number like 3 or 5 it doesnt print anything and if i use numbers like 100 it prints every print statement. any idea on what im doing wrong/and tips or hints to fix it? thanks