Skip to main content
Module

x/random_primes/mod.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/mod.ts";

Functions

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

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