#判断一个数是否是素数 #检验从2到(n-1)有没有因子 #写法一:for循环 n=int(input()) for i in range(2,n): if n%i==0: print("not prime") break else: print("prime")