I am getting all results still showing wrong Answer. please help

Primality Test Problem Code: PRB01

cook your dish here

n=int(input())

def check_prime(num):
if(num%2==0):
return False
else:
for j in range(3,(num//3)+1,2):
#print(j)
if(num%j==0):
return False
return True

for i in range(n):
num=int(input())
if(check_prime(num)):
print(“yes”)
else:
print(“no”)

Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile! :slight_smile:

Edit: Actually, assuming it’s Solution: 52394718 | CodeChef : consider the test input:

2                                                          
1
2