题解 | #牛牛的素数判断#
牛牛的素数判断
https://www.nowcoder.com/practice/81c8387f72824cceb5c955e3dbfd2882
n=int(input()) a=[] for _ in range(n): a.append(int(input())) for i in a: flag=True for j in range(2,i): if i%j == 0: flag=False print('false') break if flag: print('true')