Search results

262 packages found

module with functions relating to the prime factors of a positive integer

published version 1.3.3, 5 years ago3 dependents licensed under $MIT
1,066

Find prime factors.

published version 1.0.3, a year ago0 dependents licensed under $MIT
17

Miller Rabin algorithm for primality test

published version 4.0.1, 7 years ago340 dependents licensed under $MIT
24,433,042

Arbitrary precision modular arithmetic, cryptographically secure random numbers and strong probable prime generation/testing. It works in modern browsers, Angular, React, Node.js, etc. since it uses the native JS implementation of BigInt

published version 3.3.0, 2 years ago40 dependents licensed under $MIT
466,643

get prime factors of a number

published version 0.1.0, 8 years ago1 dependents licensed under $ISC
8

Quickly get a number's prime factors, using a cached Sieve of Eratosthenes

published version 1.1.0, 4 years ago2 dependents licensed under $ISC
16

Beta prime distribution cumulative distribution function (CDF).

published version 0.2.2, 6 months ago5 dependents licensed under $Apache-2.0
83,606

elliptic curves implementations in wasm

published version 0.2.2, 2 years ago10 dependents licensed under $GPL-3.0
50,373

Assorted common math functions & utilities

published version 5.11.16, 9 days ago49 dependents licensed under $Apache-2.0
41,652

Do math on arrays: find divisors or factors of a number, sum or multiply an array, and much more!

published version 1.1.3, 10 years ago0 dependents
12

Beta prime distributed pseudorandom numbers.

published version 0.2.1, a year ago7 dependents licensed under $Apache-2.0
13,606

Minimal implementation of older cryptography algorithms: RSA, DSA, DH

published version 0.1.0, 6 months ago1 dependents licensed under $MIT
6,200

find prime factors of a number

published version 0.0.3, 11 years ago0 dependents licensed under $MIT
5

Generate a cryptographically-random probable prime number that passes the Miller-Rabin test with the given number of bits of entropy.

published version 1.0.0, a year ago2 dependents
2,212

Implementation of the Miller-Rabin primality test.

published version 1.0.1, 3 hours ago2 dependents licensed under $MIT
1,892

Quadratic Sieve integer factorization method for JavaScript bigints

published version 1.0.78, 2 months ago1 dependents
166

Generate a Sieve of Eratosthenes with constant time lookup

published version 1.0.3, 6 years ago1 dependents licensed under $ISC
911

Test if a number is prime in constant time, using a cached Sieve of Eratosthenes.

published version 1.0.7, 9 years ago2 dependents licensed under $ISC
920

Sieve of Eratosthenes implementation.

published version 0.0.3, 6 years ago2 dependents licensed under $MIT
1,053

prime dom library

published version 0.6.0, 10 years ago6 dependents licensed under $MIT (http://mootools.net/license.txt)
794