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