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!
{{Short description|Algorithm for determining whether a number is prime}} A '''primality test''' is an [[algorithm]] for determining whether an input number is [[prime number|prime]]. Among other fields of [[mathematics]], it is used for [[cryptography]]. Unlike [[integer factorization]], primality tests do not generally give [[prime factor]]s, only stating whether the input number is prime or not. Factorization is thought to be a computationally difficult problem, whereas primality testing is comparatively easy (its [[Run-time complexity|running time]] is [[Polynomial time|polynomial]] in the size of the input). Some primality tests prove that a number is prime, while others like [[Miller–Rabin primality test|Miller–Rabin]] prove that a number is [[Composite number|composite]]. Therefore, the latter might more accurately be called ''compositeness tests'' instead of primality tests.
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)