How to find factor of number like 1636695303948070935006594848413799576108321023021532394741645684048066898202337277441635046162952078575443342063780035504608628272942696526664263794691
in python?
It shouldn't be prime. Any factor except 1
and number - acceptable.
I reviewed solutions like from here with no result.
Naive solution like:
def factor(n):
i = 2
limit = n / 2
while i <= limit:
if n % i == 0:
return i
i += 1
return 1
Also not work.