Check Prime question , encountering error while submission

EOF when reading a line, why is this happening , works fine on jupyter

Flag=1
N=int(input())
for i in range(2,N):
if N%i==0:
Flag=0
else:
pass
if Flag==1:
print(“Prime”)
else:
print(“Not Prime”)

Hello @tkrs2620,

EOF occurs when the input stream is empty. Please confirm whether you have provided custom input before running the code.

Happy Learning :blush:
Thanks

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.