A prime number is a number that has exactly two factors: 1 and itself. All whole numbers greater than 1 are either prime numbers or can be written as the product of prime numbers. There are an infinite number of prime numbers, but they occur less frequently among larger numbers. Prime numbers are important in cryptography and number theory.