Fast Prime Factor
My n goes up to 1e18 and i want any of its prime factor. How shall this be done or is this NP Hard?
Codeforces Round 945 Solution Discussion (with myself)
Atcoder ABC #354 Solution Discussion