Skip to main content
Module

x/random_primes/src/randomPrimes.ts

Generate random prime numbers with Deno and the Miller-Rabin test.
Latest
import * as randomPrimes from "https://deno.land/x/random_primes@v1.3/src/randomPrimes.ts";

This file contains the methods to generate random prime numbers.

Functions

Test if a number is a probable prime number using Miller-Rabin.

Calculate the value of base^exponent (mod modulus) for BigInts.

Generate a probable random prime number from a bit-length.