Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Primality test
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Number-theoretic methods == Certain number-theoretic methods exist for testing whether a number is prime, such as the [[Lucas primality test|Lucas test]] and [[Proth's theorem|Proth's test]]. These tests typically require factorization of ''n'' + 1, ''n'' β 1, or a similar quantity, which means that they are not useful for general-purpose primality testing, but they are often quite powerful when the tested number ''n'' is known to have a special form. The Lucas test relies on the fact that the [[multiplicative order]] of a number ''a'' modulo ''n'' is ''n'' β 1 for a prime ''n'' when ''a'' is a [[primitive root modulo n]]. If we can show ''a'' is primitive for ''n'', we can show ''n'' is prime.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)