Search results

27 packages found

Implementation of the Miller-Rabin primality test.

published version 1.0.1, 3 months ago2 dependents licensed under $MIT
5,844

Test if a number is prime.

published version 0.3.0, 8 months ago4 dependents licensed under $Apache-2.0
459

Test if a number is composite.

published version 0.3.0, 8 months ago3 dependents licensed under $Apache-2.0
268

check if a number is prime

published version 2.0.0, a month ago3 dependents licensed under $MIT
265

Test if a value is a composite number.

published version 0.2.2, 8 months ago0 dependents licensed under $Apache-2.0
125

Test if two numbers are coprime.

published version 0.2.2, 8 months ago1 dependents licensed under $Apache-2.0
119

Test if a value is a prime number.

published version 0.2.2, 8 months ago0 dependents licensed under $Apache-2.0
122

Find a prime

published version 4.0.2, a year ago1 dependents licensed under $MIT
87

Functional library for precise access to integer sequences such as prime numbers, square numbers, triangle numbers, etc

published version 1.0.4, 6 years ago0 dependents licensed under $ISC
65

Fermat's probabilistic primality test

published version 3.0.0, 2 years ago0 dependents licensed under $MIT
46

Eratosthenes primality implementation

published version 1.0.0, 7 years ago0 dependents licensed under $MIT
44

Test if a number is prime

published version 1.0.1, 10 years ago8 dependents licensed under $MIT
40

Fastest Prime Number Calculation logic for nodejs and browser (checks, random generator, prime range generator, primes count generator, summation of primes, factorial of primes)

published version 0.1.0, 2 years ago0 dependents licensed under $MIT
51

Fastest Prime Number Calculation logic for browser (checks, random generator, prime range generator, primes count generator, summation of primes, factorial of primes)

published version 0.1.0, 2 years ago0 dependents licensed under $MIT
47

Carmichael numbers

published version 2.0.0, 2 years ago0 dependents licensed under $MIT
31

Returns boolean of if provided number is prime.

published version 2.1.0, 7 years ago3 dependents licensed under $ISC
23

Lucas-Lehmer primality test

published version 4.0.1, a year ago0 dependents licensed under $MIT
31

Primality test using fast checks and miller-rabin (all in one)

published version 1.1.1, 9 years ago1 dependents licensed under $MIT
24

Simple prime number and prime factorization package

published version 1.0.1, 6 years ago0 dependents licensed under $MIT
11

A tiny (128B) utility to check if a value is a prime number

published version 3.0.0, 6 years ago0 dependents licensed under $MIT
12