n = 2 while n <= 100: prime = 1 t = 2 while t < n: if n % t == 0: prime = 0 t += 1 if prime == 1: print (n) n += 1