@sigma-js/primes

JavaScript library for efficient prime number detection and arithmetic, with customizable algorithms for large numbers.

quick-primefactors

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

primes-and-factors

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