:zzz: @number-theoretic/integers
Number theory for integers for JavaScript. See docs.
:warning: Depending on your environment, the code may require
regeneratorRuntime
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