Nepedia
Back to Discover
Advanced Reader
🔢

Prime number

math Maturity 7-9 Vital Level 3 Next article →

A prime number is a natural number greater than 1 that cannot be formed by multiplying two smaller natural numbers. This property is known as primality. If a number is greater than 1 but is not prime, it is called a composite number.

Primes-vs-composites
Primes-vs-composites

Composite numbers can be arranged into rectangular grids that are more than one dot wide and high. Prime numbers cannot form such rectangles; they can only exist as a single line of dots. Every natural number greater than 1 is either a prime itself or can be uniquely broken down into a product of primes. This concept is called the fundamental theorem of arithmetic.

Prime number Cuisenaire rods 7
Prime number Cuisenaire rods 7

To understand how numbers are built, we use a process called prime factorization. This involves finding the specific prime numbers that, when multiplied together, result in the original number. For example, the number 4 is composite because its prime factors are 2 and 2. The order of these factors does not change the result, but the set of factors remains unique to that number. This makes primes the fundamental building blocks of all mathematics. Every composite number is essentially a unique combination of these prime atoms.

Sieve of Eratosthenes animation
Sieve of Eratosthenes animation

Mathematicians use various methods to test for primality. A basic method is called trial division. In this process, you check if a number is a multiple of any integer between 2 and the square root of that number. While simple, trial division is very slow for large values. Faster algorithms exist, such as the Miller-Rabin primality test. This test is very quick but carries a small chance of error. There is also the AKS primality test. The AKS test always produces a correct answer in polynomial time, but it is currently too slow for practical use.

Prime-counting relative error
Prime-counting relative error

The study of primes has a long and rich history. Ancient Greek mathematicians provided some of the earliest surviving records. Around 300 BC, Euclid proved that there are infinitely many prime numbers. He also proved the fundamental theorem of arithmetic in his work, *Elements*.

Rhind Mathematical Papyrus
Rhind Mathematical Papyrus

Around 1000 AD, the Islamic mathematician Ibn al-Haytham discovered Wilson's theorem. This theorem characterizes primes using factorials. Later, the mathematician Fibonacci brought Islamic mathematical innovations to Europe in 1202. He described trial division using divisors only up to the square root of a number.

In the 17th and 18th centuries, many famous mathematicians studied these numbers. Pierre de Fermat investigated Fermat numbers, while Marin Mersenne studied primes of a special form called Mersenne primes. Christian Goldbach proposed a famous unsolved problem in 1742. Goldbach's conjecture suggests that every even integer greater than 2 is the sum of two primes. Leonhard Euler later proved that all even perfect numbers can be constructed using Mersenne primes. This connection between different types of numbers helped advance the field of mathematical analysis.

While primes may seem to appear randomly, they follow certain statistical patterns. The prime number theorem, proven at the end of the 19th century, describes this distribution. It states that the probability of a large number being prime is inversely proportional to its number of digits. This is related to the natural logarithm of the number. Even though there is no simple formula to separate primes from composite numbers, mathematicians can model their density.

Riemann zeta function absolute value
Riemann zeta function absolute value

This work involves complex ideas like the Riemann hypothesis and the zeta function.

Prime numbers are vital to modern information technology. They are the foundation of public-key cryptography and the RSA cryptosystem. These systems keep digital information secure by relying on a specific difficulty. It is very hard for computers to factorize extremely large numbers into their prime components. This difficulty protects secrets in our digital world.

Gears large
Gears large

Today, computers continue to search for massive primes. The largest known prime is a Mersenne prime containing 41,024,320 decimal digits. This search is often conducted through distributed computing projects like the Great Internet Mersenne Prime Search.

645 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (11)
File:Primes-vs-composites.svg
Primes-vs-composites.svg
File:Prime number Cuisenaire rods 7.png
Prime number Cuisenaire rods 7.png
File:Rhind Mathematical Papyrus.jpg
Rhind Mathematical Papyrus.jpg
File:Prime-counting relative error.svg
Prime-counting relative error.svg
File:Ulam 2.png
Ulam 2.png
File:Riemann zeta function absolute value.png
Riemann zeta function absolute value.png
File:Gaussian primes.svg
Gaussian primes.svg
File:Gears large.jpg
Gears large.jpg
File:Sieve of Eratosthenes animation.gif
Sieve of Eratosthenes animation.gif
File:Sum of knots3.svg
Sum of knots3.svg
File:Pentagon construct.gif
Pentagon construct.gif
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.