UNPKG

cnum

Version:

Represent rational numbers in comfortably numeric way.

5 lines (4 loc) 246 B
export declare const gcd: (a: bigint, b: bigint) => bigint; export declare const isPrime: (n: bigint) => boolean; export declare function primes(): Generator<bigint>; export declare const primeFactors: (n: bigint) => Array<[bigint, bigint]>;