Number theory for integers for JavaScript. See docs.
⚠️ Depending on your environment, the code may requireregeneratorRuntime
to be defined, for instance by importing regenerator-runtime/runtime.
import * as double from '@arithmetic-type/double';
import {factorizer} from '@number-theoretic/integers';
const factorize = factorizer(double);
[...factorize(999)]; // 3 3 3 37