Skip to content

number-theoretic/integers

Repository files navigation

Number theory for integers for JavaScript. See docs.

⚠️ 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

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size