Nepedia
Back to Discover
Fluent Reader
🔢

Prime number

math Maturity 7-9 Vital Level 3 Next article →

Imagine you have a collection of dots. Some groups of dots can be arranged into a neat, solid rectangle. These are called composite numbers.

Primes-vs-composites
Primes-vs-composites

Other groups cannot form a rectangle at all. You can only line them up in one single row. These special numbers are called prime numbers. A prime number is any natural number greater than 1. It cannot be made by multiplying two smaller natural numbers together. For example, 5 is prime because nothing else multiplies to make it. However, 4 is composite because 2 times 2 equals 4.

Prime number Cuisenaire rods 7
Prime number Cuisenaire rods 7

Primes are the building blocks of all numbers. This idea is called the fundamental theorem of arithmetic. It says every number greater than 1 is either a prime or can be broken into primes. This breaking down process is called prime factorization. You can think of primes as the atoms of the math world. Every composite number is made of a unique set of prime parts. This set stays the same no matter how you group them.

Sieve of Eratosthenes animation
Sieve of Eratosthenes animation

People have studied these numbers for a very long time. Ancient Greek mathematicians were among the first to record them. A man named Euclid lived around 300 BC. He proved that prime numbers go on forever and never end.

Rhind Mathematical Papyrus
Rhind Mathematical Papyrus

Later, an Islamic mathematician named Ibn al-Haytham found a way to characterize primes around 1000 AD. He used a rule involving factorials to describe them. Many thinkers have added to this history over the centuries. They worked to find patterns in how primes appear.

Finding primes can be a very hard job. One simple way to check a number is called trial division. You test if a number can be divided by any smaller number. There are faster ways to do this with computers. For instance, the Miller-Rabin test is very fast but can sometimes make a mistake. The AKS test is always correct but is too slow for big jobs.

Prime-counting relative error
Prime-counting relative error

Right now, the largest known prime is a Mersenne prime. It is a huge number with 41,024,320 decimal digits!

Primes are not just for puzzles; they help our modern world work. We use them in information technology every single day. They are the basis for public-key cryptography. This is a way to keep digital secrets safe using math. It works because it is very hard to break large numbers into their prime factors.

Gears large
Gears large

Even though they seem random, we can model their distribution. The prime number theorem helps us understand how often they appear. Many math questions about primes, like Goldbach's conjecture, are still unsolved today.

431 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.