n = input("n=? ") p = 2 while p < n: if (n / p) * p == n: print "Pas premier" p = p + 1