Large number Divisor

Find the divisor of a given number n.
Constraints:2<n<10^15
Ex I/P:n=12
O/P:1,2,3,4,6,12

P.S: I am getting TLE

Comments (0)