fork download
  1. n=int(input())
  2. k=2
  3. for i in n:
  4. j=k
  5. while n!=1:
  6. if j%2==0:
  7. j//2
  8. elif j%3==0:
  9. j//3
  10. elif j%5==0:
  11. j//5
  12. else:
  13. break
  14. if j==1:
  15. print(k)
  16. k+=1
  17.  
Runtime error #stdin #stdout #stderr 0.16s 23320KB
stdin
5
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 3, in <module>
TypeError: 'int' object is not iterable