- This algorithm is a monte carlo algorithm used for testing whether a given number is a prime or not.
- This works much better than fermat's theorem.
- This algorithm is likely to give false positive in case of Carmichael numbers.
- The code implementation given below will not work with any number less than three.
- This code contains a large number of commented out printf statements which i added during debugging. However I decided against removing them as I though it might help some one whose trying to understand the working of the algorithm.
Labels
android
Assembly Language
bash
Beagle Bone Black
c
c++
CL1
competitive programming
compiler
computer vision
data structure
database
dsps
encryption
games
graphs
hacks
java
linux
lisp
MIL
monte carlo algo
MPAL
networking
OOMCPL
osa
perl
pl
PL -3
PL-1
PL-2
PL-4
python
qt
recursive algorithms
Scala
security
sorting
storage
terminal
ubuntu
utilities
Showing posts with label monte carlo algo. Show all posts
Showing posts with label monte carlo algo. Show all posts
Wednesday, 3 February 2016
Miller Rabin Primality Testing Algorithm in C language
Subscribe to:
Posts (Atom)