Talk:Fermat primality test
This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||
|
both true
[edit]Both conditions, and , are true. if ist true, so every for every natural number with . So because every natural with is , so is every natural number different from prime . --Arbol01 00:40, 29 October 2005 (UTC)
- If this is in regard to the rollback I did earlier, I did it because they broke the TeX. Anyway, whichever way looks better, go for it. CryptoDerk 00:45, 29 October 2005 (UTC)
usage section?
[edit]I believe that someone should remove the usage section because it is flat-out wrong. PGP is not a program, but rather a system for signing and encrypting information. GPG is a program that implements PGP. I have no idea what GPG uses, but an implementation of PGP, to the best of my knowledge, can use any primality checker it wants. I have not removed the section because I am not completely sure about this, and want to get it right. Does anyone else have any insight into the subject? - Alan 134.173.34.115 08:35, 25 April 2006 (UTC)
- Pretty_Good_Privacy is a program. And it does indeed use the Fermat pseudo primality test to find the primes used for RSA keys. GPG is another implementation that is compatible with PGP. I.e. both programs implement the OpenPGP standard. However, in cryptographic applications the Miller-Rabin test is often prefered. See e.g. the Digital Signature Standard, FIPS PUB 186-3 (draft) Appendix D.5. 24.228.51.109 17:35, 3 September 2007 (UTC)
simple divisibility test
[edit]Why is no stipulation made that base 'a' must not divide the 'n' being primality tested? It seems to me that a basic divisibility check would would be step one before taking exponents and doing the modulus. In fact, this simple check would eliminate most liars and all of the Carmichael numbers. 134.204.1.226 (talk) 17:32, 12 November 2021 (UTC)
- Divisibility isnt what you want. A check of coprimality would be more appropriate. And there is no reason to do it. If you use a^(n-1)%n==1 youre going to fail the test whenever a is not coprime to n. Whether or not n is Carmichael. 63.40.186.52 (talk) 01:12, 17 April 2024 (UTC)