Search results
259 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
module with functions relating to the prime factors of a positive integer
Miller Rabin algorithm for primality test
get prime factors of a number
Find prime factors.
Quickly get a number's prime factors, using a cached Sieve of Eratosthenes
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
Do math on arrays: find divisors or factors of a number, sum or multiply an array, and much more!
Beta prime distribution cumulative distribution function (CDF).
- stdlib
- stdmath
- statistics
- stats
- distribution
- dist
- probability
- prob
- cdf
- cumulative
- cumulative distribution
- distribution function
- beta
- prime
- View more
elliptic curves implementations in wasm
find prime factors of a number
Assorted common math functions & utilities
- animation
- bezier
- cubic
- easing
- hermite
- interpolation
- interval
- math
- prime
- quadratic
- smoothmax
- smoothstep
- solver
- trigonometry
Beta prime distributed pseudorandom numbers.
Minimal implementation of older cryptography algorithms: RSA, DSA, DH
Tools used to understand or work with numbers in Node.JS, Javascript and derivatives.
- number
- numbers
- math
- theory
- abundant
- adaptive simpson
- addition
- affine
- arithmetic
- basic
- bates
- binomial
- box muller
- box muller transform
- View more
Generate a Sieve of Eratosthenes with constant time lookup
Generate a cryptographically-random probable prime number that passes the Miller-Rabin test with the given number of bits of entropy.
Test if a number is prime in constant time, using a cached Sieve of Eratosthenes.
Sieve of Eratosthenes implementation.
Checks if a number is prime, and if not, returns the corresponding factors. Used for PhoneGap Day EU 2017 'Creating Modern PhoneGap Plugins' workshop; not intended for production use (there are better ways to find primes!)
Implementation of the Miller-Rabin primality test.