@holgerengels/compute-engine
Version:
Symbolic computing and numeric evaluations for JavaScript and Node.js
8 lines (7 loc) • 362 B
TypeScript
/* 0.26.0-alpha2 */
export declare const LARGEST_SMALL_PRIME = 7919;
export declare function primeFactors(n: number): {
[factor: number]: number;
};
export declare function isPrime(n: number): boolean | undefined;
export declare function isPrimeBigint(n: bigint): boolean | undefined;
export declare function bigPrimeFactors(d: bigint): Map<bigint, number>;