<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tcs.nju.edu.cn/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=2001%3A14BA%3A8FB%3A4E01%3AD470%3AFA10%3AEA04%3A9E09</id>
	<title>TCS Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://tcs.nju.edu.cn/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=2001%3A14BA%3A8FB%3A4E01%3AD470%3AFA10%3AEA04%3A9E09"/>
	<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Special:Contributions/2001:14BA:8FB:4E01:D470:FA10:EA04:9E09"/>
	<updated>2026-05-26T20:33:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Primality_test&amp;diff=7544</id>
		<title>Primality test</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Primality_test&amp;diff=7544"/>
		<updated>2017-07-24T14:10:56Z</updated>

		<summary type="html">&lt;p&gt;2001:14BA:8FB:4E01:D470:FA10:EA04:9E09: capitalization&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;primality test&#039;&#039;&#039; is a method (or [[algorithm]]) to find out if a certain number is a [[prime number]]. [[Cryptography]] uses prime numbers, and needs to test if a certain number is prime.  The official proof of a prime is through its primality certificate.&lt;br /&gt;
&lt;br /&gt;
==Simple methods==&lt;br /&gt;
*[[Sieve of Eratosthenes]]: Determine if there is a number (between 2 and n, the number to test) that divides n, without a rest&lt;br /&gt;
* Wilson&#039;s theorem (inefficient): &amp;lt;math&amp;gt;(p-1)!&amp;lt;/math&amp;gt; evaluates to -1 mod p where p is the candidate prime number&lt;br /&gt;
&lt;br /&gt;
==Better methods==&lt;br /&gt;
*[[Fermat&#039;s primality test]]&lt;br /&gt;
*[[:en:Miller–Rabin_primality_test|Miller-Rabin primality test]]&lt;br /&gt;
&lt;br /&gt;
{{math-stub}}&lt;br /&gt;
[[Category:Number theory]]&lt;br /&gt;
.&lt;/div&gt;</summary>
		<author><name>2001:14BA:8FB:4E01:D470:FA10:EA04:9E09</name></author>
	</entry>
</feed>