I have code that checks if the number is prime or note
when I run it gives me an error
my code:
a = int (input("your numbre :"))
b = range(1,a+1)
if a%b == 0:
    for i in b :
        if b == a or b == 1:
            print("the numbre you input is prim number")
else:
    print("the nmubre you input is note prem numbre")
the error generated :
Traceback (most recent call last):
  File "C:\Users\admin\Desktop\chap8ex2.py", line 3, in <module>
    if a%b == 0:
TypeError: unsupported operand type(s) for %: 'int' and 'range'
 
     
    