Scientific Calculator
Scripts tagged primes
- silentmatt/factors
written by Matthew Crumley
Get all the prime factors of a number (plus 0 or -1) with or without duplicates.
- silentmatt/miller-rabin
written by Matthew Crumley
millerRabin and isProbablePrime functions
- silentmatt/primes
written by Matthew Crumley
Generate all the prime numbers from 0 to n using the Sieve of Eratosthenes