Atkin's Single Precision Primality Test

This primality test is capable of stating whether certain numbers are prime or composite. It also fails for some numbers which I am relatively sure is due to the author's implementation details. There are just three input parameters which include the number to be tested.

C# (140.4 KB)
 
 
 
 
 
(0)
138 times
Add to favorites
10/8/2015
E-mail Twitter del.icio.us Digg Facebook