A prime number is a positive whole number greater than one that has exactly two different positive factors: one and the number itself. The number 5 is prime because its only positive factors are 1 and 5. By comparison, 6 is composite because it has the factors 1, 2, 3, and 6. Composite numbers have more than two positive factors, while prime numbers have exactly two.
The smallest prime number is 2. It is also the only even prime number because every larger even number is divisible by 2 as well as by 1 and itself. Other familiar primes include 3, 5, 7, 11, 13, 17, 19, 23, and 29.
This sequence does not follow a simple repeating pattern that identifies every prime by appearance alone. A prime number calculator is intended to help determine the primality of an integer. The underlying mathematical decision is straightforward: if the integer is greater than one and has no positive divisors other than one and itself, it is prime. Otherwise, a positive integer greater than one is composite.
This classification is different from finding every factor of the number. For beginners, some small rules make checking easier. Even numbers larger than 2 are not prime.
Numbers larger than 3 whose digits add up to a multiple of 3 are divisible by 3. Numbers greater than 5 ending in 0 or 5 are divisible by 5. These rules quickly identify many composite numbers, although they do not identify every composite number. The numbers 0 and 1 deserve special attention.
Neither is prime or composite. The number 1 has only one positive divisor, so it does not meet the definition of a prime number. Negative integers and fractional values are outside the conventional domain of prime-number classification.
Primality has no physical unit. A number being prime does not depend on kilograms, seconds, currencies, or percentages. The classification depends entirely on integer divisibility. The actual interface and validation behavior of a particular calculator must be confirmed separately from these mathematical principles.