Fast prime factorization module

前端 未结 7 1949
萌比男神i
萌比男神i 2020-11-29 15:44

I am looking for an implementation or clear algorithm for getting the prime factorization of N in either python, pseudocode or any

7条回答
  •  春和景丽
    2020-11-29 16:32

    You should probably do some prime detection which you could look here, Fast algorithm for finding prime numbers?

    You should read that entire blog though, there is a few algorithms that he lists for testing primality.

提交回复
热议问题