Factorization
const Factorization = require('factorization') console.log(Factorization(1024)) // [2, 2, 2, 3, 3, 5]
参考
https://ja.wikipedia.org/wiki/ポラード・ロー素因数分解法 https://qiita.com/gushwell/items/561afde2e00bf3380c98
const Factorization = require('factorization') console.log(Factorization(1024)) // [2, 2, 2, 3, 3, 5]
https://ja.wikipedia.org/wiki/ポラード・ロー素因数分解法 https://qiita.com/gushwell/items/561afde2e00bf3380c98
npm i factorization
1
1.0.0
MIT
1.84 kB
3