Skip to content

F0079/miller-rabin-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

How to find large prime numbers?

The implementation is based on the following article by Heise1 and uses the Miller-Rabin-Test to find large prime numbers.

Note, that this is a PoC and does not fully implement the Miller-Rabin-Test.

Execute the Javascript file with two arguments: the first argument is the number to apply the Miller-Rabin-Test and the second argument is the witness.

For numbers below 2047, the witness should be 2. For the witness argument, refer to the chapter Deterministische Varianten.

Example:

$ node mrt.js 11 2

Footnotes

  1. Kryptografie: Riesige Primzahlen für sichere Verschlüsselungen finden, https://www.heise.de/hintergrund/Kryptografie-Riesige-Primzahlen-fuer-sichere-Verschluesselungen-finden-7370508.html

About

A javascript implementation of the Miller-Rabin-Test.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published