Python Program to Check Prime Number

def isPrime(n): 

# Corner case 
if n <= 1: 
    return False

# Check from 2 to n-1 
for i in range(2, n): 
    if n % i == 0: 
        return False; 

return True

# Driver Program to test above function 
print("true") if isPrime(11) else print("false") 
print("true") if isPrime(14) else print("false")

thank you its wokking