1、Prime integers can be efficiently found using a primality test.

2、Fast Monte Carlo probabilistic algorithm for primality test

3、Of course, much more efficient algorithms for testing primality exist, but this one is the easiest to understand.

4、Based on some basic theorems in theory of Numbers this program takes advantage of probabilistic algorithm to test a large number for primality.