A prime number (or a prime) is a natural number greater than 1
that
cannot be formed by multiplying two smaller natural numbers. A natural number
greater than 1
that is not prime is called a composite number. For
example, 5
is prime because the only ways of writing it as a
product, 1 × 5
or 5 × 1
, involve 5
itself. However, 6
is
composite because it is the product of two numbers (2 × 3)
that are
both smaller than 6
.
A primality test is an algorithm for determining whether an input number is prime. Among other fields of mathematics, it is used for cryptography. Unlike integer factorization, primality tests do not generally give prime factors, 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 running time is polynomial in the size of the input).
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。