n=int(input()) k=2 for i in n: j=k while n!=1: if j%2==0: j//2 elif j%3==0: j//3 elif j%5==0: j//5 else: break if j==1: print(k) k+=1
5
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 3, in <module> TypeError: 'int' object is not iterable