1 # 1-100之间的质数 2 i = 2 3 while i <= 100: 4 j = 2 5 flag = True 6 while j < i: 7 if i % j == 0: 8 flag = False 9 break 10 j += 1 11 if flag: 12 print(i) 13 i += 1