Problems with prime numbers

前端 未结 6 1924
礼貌的吻别
礼貌的吻别 2020-12-14 05:08

I am trying to write a program to find the largest prime factor of a very large number, and have tried several methods with varying success. All of the ones I have found so

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-14 05:14

    You are trying to find the prime factors of a number. What you are proposing will work, but will still be slow for large numbers.... you should be thankful for this, since most modern security is predicated on this being a difficult problem.

提交回复
热议问题