Skip to content

microHoffman/miller-rabin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Miller-Rabin Primality Test

I've implemented Miller-Rabin Primality Test in Javascript using the BigInt type.

Time complexity for this algorithm should be O(k * log^3(n)), where n is the tested number and k is the number of rounds performed (higher k means higher probablity of correct result).

For more information about Miller-Rabin Primality Test and mathematics behind it please see e.g. https://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test.

About

Miller-Rabin Primality Test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published