prime-number
is a recursive function to check if a number is prime (and a benchmark to test how slow it is :)
is a recursive function to check if a number is prime (and a benchmark to test how slow it is :)
Carmichael numbers
Test if a number is prime
A Javascript Implementation of the Lucas-Lehmer Primality Test for Mersenne Primes
Fermat's probabilistic primality test
Lucas-Lehmer primality test
Find a prime
Primality test using fast checks and miller-rabin (all in one)
Functional library for precise access to integer sequences such as prime numbers, square numbers, triangle numbers, etc
Returns boolean of if provided number is prime.
Check if the given number is a mersenne prime or not.
Simple prime number and prime factorization package
A tiny (128B) utility to check if a value is a prime number
Primality test (naive approach)
Fastest Prime Number Calculation logic for nodejs and browser (checks, random generator, prime range generator, primes count generator, summation of primes, factorial of primes)
Fastest Prime Number Calculation logic for browser (checks, random generator, prime range generator, primes count generator, summation of primes, factorial of primes)
Number theory for integers for JavaScript
Returns true or false depending on the number's parity (odd/even) and primality (prime/composite); Also checks if integer does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.
An implementation of the Miller-Rabin primality test to efficiently determine with high probability whether some arbitrarily-large number is prime.
Test if a number is a prime number.