Correct code giving error

following is my code for telling prime/not prime

n=int(input())
tag=True

if n==0 or n==1:
tag=False

else:

for i in range(2,n):
    if n%i==0:
        tag=False
        break

if tag:
print(‘prime’)

else:
print(‘not prime’)

following is the erroe given by coding blocks compiler:

Traceback (most recent call last):
File “source”, line 1, in
n=int(input())
EOFError: EOF when reading a line

Hey @pasta, when you are running your code on ide, you need to provide the custom input first. So to do that, click on input button next to run, provide the custom input and than press the run button.

Hope this cleared your doubt. :blush: