Monday, October 10, 2011

How to Check if a Number Is Prime

There are several methods for testing primality of integers. The best choice depends on the circumstances. Some of the methods are faster than others, while some popular tests are actually only probabilistic algorithms that will occasionally falsely characterize a number as prime or composite. The faster methods are primality tests, not factorization algorithms, so even if they show a number to be composite, they reveal nothing about its prime factors. This article will help you to explore a few of the methods.
How to Check if a Number Is Prime

No comments: