Primality
Primality refers to the property of a natural number greater than 1 being a prime. A prime number has no positive divisors other than 1 and itself. By contrast a composite number has at least one divisor other than 1 and itself. The number 2 is the smallest prime and the only even prime; every even number greater than 2 is composite. The integer 1 is not prime.
Prime numbers are the building blocks of the integers: every integer greater than 1 can be factored
Determining whether a given number is prime is called primality testing. A straightforward method is trial
For very large numbers, probabilistic primality tests are used. The Miller–Rabin test is a common randomized
Primality testing is central to number theory and practical applications such as public-key cryptography, where primes