pFactor
A simple tool to return prime factors of a given number
Install:
npm install pfactor
Usage:
const pFactor = require('pfactor');
console.log(pFactor(12));
This will log the prime factors as an array (in ascending order):
[2,2,3]
npm install pfactor
const pFactor = require('pfactor');
console.log(pFactor(12));
This will log the prime factors as an array (in ascending order):
[2,2,3]
npm i pfactor
2
1.0.3
MIT
2.62 kB
4