num = 1 while num < 101: a = 2 flag = 1 while a <= num / 2: if num % a == 0: flag = 0 a += 1 if flag == 1: print(num) num += 1