k = int(input('k = ?'))for i in range (2, k//2+1): if k%i == 0: print(i, end = ' ')
1256
k = ?2 4 8 157 314 628
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!