Pseudoprime: Difference between revisions
imported>Karsten Meyer mNo edit summary |
imported>Jitse Niesen (rewrite intro) |
||
Line 1: | Line 1: | ||
{{subpages}} | {{subpages}} | ||
A ''' | A '''pseudoprime''' is a composite number that has certain properties in common with [[prime number]]s. | ||
== | == Introduction == | ||
If you | If you want to find out if a given number is a prime number, you can to test it based on some properties that all prime numbers share. A property of prime numbers is that they are only divisible by one and itself. This is a defining property: it holds for all prime numbers and no other numbers. | ||
== Different kinds of | However, other properties hold for all prime numbers and also some other numbers. For instance, every prime number has the form <math>6n - 1\ </math> or <math>6n + 1\ </math> (with ''n'' an integer), but there are also composite numbers of this form: 25, 35, 49, 55, 65, 77, 85, 91, … . So, you could say that 25, 35, 49, 55, 65, 77, 85, 91, … are pseudoprimes with respect to the property of being of the form <math>6n - 1\ </math> or <math>6n + 1\ </math>. There exist better properties, which lead to special pseudoprimes: | ||
== Different kinds of pseudoprimes == | |||
{| border="1" cellspacing="0" | {| border="1" cellspacing="0" | ||
|Property ||kind of | |Property ||kind of pseudoprime | ||
|- | |- | ||
|<math>a^{n-1} \equiv 1 \pmod{n}</math> ||[[Fermat pseudoprime]] | |<math>a^{n-1} \equiv 1 \pmod{n}</math> ||[[Fermat pseudoprime]] |
Revision as of 05:03, 29 January 2008
A pseudoprime is a composite number that has certain properties in common with prime numbers.
Introduction
If you want to find out if a given number is a prime number, you can to test it based on some properties that all prime numbers share. A property of prime numbers is that they are only divisible by one and itself. This is a defining property: it holds for all prime numbers and no other numbers.
However, other properties hold for all prime numbers and also some other numbers. For instance, every prime number has the form or (with n an integer), but there are also composite numbers of this form: 25, 35, 49, 55, 65, 77, 85, 91, … . So, you could say that 25, 35, 49, 55, 65, 77, 85, 91, … are pseudoprimes with respect to the property of being of the form or . There exist better properties, which lead to special pseudoprimes:
Different kinds of pseudoprimes
Property | kind of pseudoprime |
Fermat pseudoprime | |
Euler pseudoprime | |
strong pseudoprime | |
is divisible by | Carmichael number |
is divisible by | Perrin pseudoprime |
is divisible by |