fork(2) 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.01s 7856KB
stdin
18
stdout
podaj liczbę
2
3
3