def prime(x): i = 3 if(x % 2 == 0): return False else: while i <= x // 2: if(x % i == 0): return False i += 2 return True print(prime(149))