fork download
  1. x=int(input('podaj liczbę\n'))
  2. p=2
  3. while x>2:
  4. while x%p==0:
  5. x=x/p
  6. print(p)
  7. p=p+1
Success #stdin #stdout 0.02s 7276KB
stdin
9
stdout
podaj liczbę
3
3