x = 100 z = 0 while z < x: z = z + 1 if not x % z: print z print 'done'