Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages