| |
| | Primality test - Definition, explanation |
 | | It is important to note the difference between primality testing and integer factorization — factorization is, as of 2005, a computationally hard problem, whereas primality testing, as shown below, is comparatively easy. |
 | | The simplest primality test is as follows: Given an input number n, we see if any integer m from 2 to n-1 divides n. |
 | | The Miller-Rabin primality test and Solovay-Strassen primality test are more sophisticated variants which detect all composites (once again, this means: for every composite number n, at least 2/3 of numbers a are witnesses of compositeness of n). |
| www.calsky.com /lexikon/en/txt/p/pr/primality_test.php (1213 words) |
|