import math
n=int(input())
x=int(math.sqrt(n))
z=0
for i in range(2,x+1):
if x%i==0:
z=1
print(“Not Prime”)
break
if z==0:
print(“Prime”)
Check prime wrong answer
import math n=int(input()) x=int(math.sqrt(n)) z=0 for i in range(2,x+1): if n%i==0: print(i) z=1 print(“Not Prime”) break if z==0: print(“Prime”)
Hey @Shivam31, if you are unable to solve the problem, you have to unlock the editorial and than take help from that, since its a leaderboard challenge.
Happy Learning 
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.