Search npm for packages to use with Deno
Add them to your projects with a simple command that will already feel familar.
crypto-miller-rabin
Implementation of the Miller-Rabin primality test.
@stdlib/math-base-assert-is-prime
Test if a number is prime.
primal
Primality test using fast checks and miller-rabin (all in one)
@stdlib/math-base-assert-is-composite
Test if a number is composite.
prime-number
check if a number is prime
find-prime
Find a prime
@stdlib/assert-is-composite
Test if a value is a composite number.
@stdlib/math-base-assert-is-coprime
Test if two numbers are coprime.
@stdlib/assert-is-prime
Test if a value is a prime number.
integer-sequences
Functional library for precise access to integer sequences such as prime numbers, square numbers, triangle numbers, etc
fast-prime
Fastest Prime Number Calculation logic for nodejs and browser (checks, random generator, prime range generator, primes count generator, summation of primes, factorial of primes)
@alexvcasillas/erat-o
Eratosthenes primality implementation
fermat
Fermat's probabilistic primality test
is-prime
Test if a number is prime
fast-prime-client
Fastest Prime Number Calculation logic for browser (checks, random generator, prime range generator, primes count generator, summation of primes, factorial of primes)
lucas-lehmer-test
Lucas-Lehmer primality test
is-prime-number
Returns boolean of if provided number is prime.
carmichaels
Carmichael numbers
lucas-lehmer
A Javascript Implementation of the Lucas-Lehmer Primality Test for Mersenne Primes
primes-simple
Simple prime number and prime factorization package