<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Primality test - Page 16 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=primality_test&amp;p=15">1.Previous</a><br />
<a accesskey="3" href="page.php?w=primality_test&amp;p=17">3.Next</a>
</p>
<p>a witness for the compositeness, and the test stops.<br/>
#Get back to the step one until the required accuracy is reached.</p>

<p>After one or more iterations, if n is not found to be a composite number, then it can be declared <a href="page.php?w=Probable_prime">probably prime</a>.</p>

<p><big> Fermat primality test </big></p>
<p>The simplest probabilistic primality test is the <a href="page.php?w=Fermat_primality_test">Fermat primality test</a> (actually a compositeness test). It works as follows:</p>

<p>
:Given an integer n, choose some integer</p><p>
<a accesskey="1" href="page.php?w=primality_test&amp;p=15">1.Previous</a><br />
<a accesskey="3" href="page.php?w=primality_test&amp;p=17">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
