fork download
  1. k = int(input('k = ?'))
  2. for i in range (2, k//2+1):
  3. if k%i == 0:
  4. print(i, end = ' ')
Success #stdin #stdout 0.1s 14160KB
stdin
1256
stdout
k = ?2 4 8 157 314 628