Muhammad_mhs's blog

By Muhammad_mhs, history, 5 years ago, In English

How can I solve 20 digit number factorization ? Problem link Can anyone explain,please?

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
5 years ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

first notice than u can use long long becouse 20 digit is < 1e19. than u need to use some fast method of factorization .U can read about some method there https://en.wikipedia.org/wiki/Integer_factorization i think dixon's factorization method will be enough https://en.wikipedia.org/wiki/Dixon%27s_factorization_method