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)
138 times
Add to favorites
E-mail Twitter Digg Facebook