第4章-11 判断素数 import math def isprime(x): #x = int(x) for i in range(2, int(math.sqrt(x)) + 1): if x % i == 0: return False if x == 1: return False return True t = int(input()) cnt = 0 while cnt < t: cnt += 1 n = int(input()) if isprime(n): print('Yes') else: print('No')