Naru News日本語

Home › Glossary › Math

What is a prime number (a whole number above 1 divisible only by 1 and itself)?

Also called: Prime

Term explainer · Checked November 21, 2026 · 12 min read

In one minute

A prime number is a whole number greater than 1, like 2, 3, 5, 7 or 11, that can be divided evenly only by 1 and by itself.

Unlike numbers that can be made by multiplying smaller ones, such as 4 = 2 × 2 and 6 = 2 × 3 (composite numbers), a prime can’t be split any further by multiplication. Every whole number greater than 1 splits into a product of primes in exactly one way, apart from the order (60 = 2 × 2 × 3 × 5), so primes are the building blocks of whole numbers. 1 is left out of the primes to keep that “exactly one way.”

There are infinitely many primes, and they thin out as numbers grow (25 up to 100, 78,498 up to a million). Multiplying two big primes takes an instant, but finding the two again from the answer is very hard, so primes have also been used in encryption (RSA).

A common mix-up

“1 is a prime too, since only 1 and itself divide it.”

It is true that 1 can be divided evenly only by 1, that is, by itself, and in the past some mathematicians did count 1 as a prime. But today a prime is defined as a whole number greater than 1, and 1 is counted as neither prime nor composite. The reason is to keep prime factorization (splitting a whole number into a product of primes) down to exactly one way. Multiplying by 1 changes nothing, so if 1 were a prime, you could keep adding 1s, as in 6 = 2 × 3 = 1 × 2 × 3 = 1 × 1 × 2 × 3 …, and there would be endlessly many ways to split. You can also say that a prime has exactly two different divisors (numbers that divide it evenly), 1 and itself, while 1 has only one.

Explained in pictures

A table of the whole numbers from 1 to 100 in 10 rows of 10. Title: “Primes from 1 to 100”, with the note “Cross out the multiples; the primes are what is left”. The 25 primes, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89 and 97, are circled in navy. The other numbers are in pale gray with a slash (crossed out, composite). 1 is in an orange dotted square. On the right, “How the sieve works”: 1, leave out 1. 2, keep 2; cross out its multiples. 3, keep 3; cross out its multiples. 4, do the same for 5 and 7. 5, what is left are the primes. Note: up to 100, crossing out multiples of primes up to √100 = 10 (2, 3, 5, 7) is enough. Key: circle = prime (25), slash = composite, dotted square = “1: neither prime nor composite”. Band at the bottom: 25 primes up to 100; 2 is the only even prime.
This figure shows the “sieve of Eratosthenes”, a way to pick out the primes from 1 to 100. Leave out 1, keep 2 and cross out its multiples, keep 3 and cross out its multiples, and so on; the numbers left standing (circles) are the primes, 25 of them up to 100. Every composite number up to 100 is divisible by a prime of 10 or less (two numbers both above 10 multiply to more than 100), so crossing out the multiples of 2, 3, 5 and 7 is enough. Every even number is divisible by 2, so all primes larger than 2 are odd.
A figure showing two ways of splitting 60 into a product of primes, and the trouble if 1 were a prime. Title: “Only one way to split into primes”. Left panel, “Splitting 60 in two ways”: the first tree splits 60 into 6 and 10, then 6 into 2 and 3 and 10 into 2 and 5, giving = 2×3×2×5. The second tree splits 60 into 4 and 15, then 4 into 2 and 2 and 15 into 3 and 5, giving = 2×2×3×5. Primes are navy circles; numbers that can still be split are boxes. Below: “Reordered, both are 2×2×3×5” and “Primes (circles) cannot be split any further”. Right, a gray dotted box, “If 1 were a prime”: 6 = 2×3, 6 = 1×2×3, 6 = 1×1×2×3, 6 = 1×1×1×2×3, … and “You could add 1s forever: no longer just one way”. Band at the bottom: every whole number above 1 has one prime split, so 1 is left out.
This figure shows 60 being split into a product of primes. Whether you start with 6 × 10 or 4 × 15, once you split all the way down to primes (circles), you get the same 2 × 2 × 3 × 5, apart from the order. That this happens for every whole number is called the “fundamental theorem of arithmetic”. On the right: if 1 were counted as a prime, then, since multiplying by 1 changes nothing, you could add as many 1s as you like, 6 = 1 × 2 × 3 = 1 × 1 × 2 × 3 …, and there would no longer be just one way to split. That is why 1 is not a prime.
A figure showing the steps of Euclid’s proof that there are endlessly many primes, as three boxes from top to bottom. Title: “Primes never run out (Euclid’s proof)”. Top, a gray dotted box, “A list of primes (all of them?)”: 2, 3, 5, 7, 11, 13; “Any list will do, however long it is”. Arrow: “Multiply them all, then add 1”. Middle, a navy box, “A new number”: 2×3×5×7×11×13 + 1 = 30031; “Divided by any prime on the list, it leaves 1”. Arrow: “Only primes not on the list divide it”. Bottom, an orange box, “Primes that divide it”: 30031 = 59 × 509; “Neither 59 nor 509 is on the list”. Band at the bottom: every list of primes is missing some prime.
This figure walks through the idea of Euclid’s proof that there are endlessly many primes, with an example. Multiply all the primes on a list (top box) and add 1, and you get 30031 (middle box). The product of all the listed primes is divisible by each of them, so after adding 1, dividing by any of them leaves 1. Every whole number of 2 or more is divisible by some prime, so any prime that divides 30031 is not on the list. Indeed, 30031 = 59 × 509 (bottom box). The same works for any list, so a list of primes can never be complete.
A figure comparing, in four strips, how primes thin out as numbers grow. Title: “Bigger numbers, sparser primes”, with the note “Each row: the next 100 whole numbers; a line marks each prime”. Row 1, “1–100”: 25 vertical lines (25 primes). Row 2, “10,000+” (10,001 to 10,100): 11 lines (11 primes; estimate ≈11). Row 3, “1 million+” (1,000,001 to 1,000,100): 6 lines (6; estimate ≈7). Row 4, “1 trillion+” (1,000,000,000,001 to 1,000,000,000,100): 4 lines (4; estimate ≈4). Some lines come in close pairs, and there are long empty stretches. A scale under the strips marks the 1st, 50th and 100th numbers. Note: Estimate: 100 ÷ log x (near x, about 1 in every log x numbers is prime). Band at the bottom: irregular spacing, but the counts match the estimate.
This figure counts the primes in stretches of 100 whole numbers. From 1 to 100 there are 25, but in the 100 numbers just past ten thousand there are 11, past a million 6, and past a trillion only 4: the bigger the numbers, the sparser the primes. The prime number theorem’s estimate, “near x, about 1 in every log x numbers is prime”, nearly predicts each count. Log x is a number that grows by only about 2.3 each time x gets ten times bigger. Meanwhile, the lines are spaced irregularly, sometimes in close pairs and sometimes with long gaps.

You’re free to use these figures in lessons, slides and posts if you credit Naru News (naru.news). CC BY 4.0.

Think of it like this

The atoms that things are made of

Everything around us is made of combinations of tiny particles called atoms. For example, every water molecule is made of two hydrogen atoms and one oxygen atom. What a thing is made of can be described as a combination of atoms.

Among whole numbers, the primes play the part of atoms. However you split 60, you get the same combination: two 2s, one 3 and one 5. Fix the whole number and its combination of primes is fixed; fix the combination and the whole number is fixed too. That is why, when studying whole numbers, people often start by splitting them into primes. For example, the biggest number that divides both 12 and 18 is the part they share, 2 × 3 = 6, as you can see from 12 = 2 × 2 × 3 and 18 = 2 × 3 × 3. Multiplying by 1 changes nothing, so 1 is not counted as one of these atom-like building blocks.

But the analogy breaks down in places. The kinds of atoms fit in a single periodic table, but there are infinitely many primes, and no table can hold them all. Also, atoms are held together by chemical bonds, while primes are only joined by multiplication.

Key points

What does it mean that prime factorization is “only one way”?

Writing a whole number of 2 or more as a product of primes only is called prime factorization. For example, whether you split 60 as 6 × 10 or as 4 × 15, splitting all the way down to primes gives 2 × 2 × 3 × 5. Apart from the order of the factors, every whole number splits in only one way. This is called the “fundamental theorem of arithmetic”. A proposition at the root of it already appears in Euclid’s Elements, from about 300 BC.

As in “A common mix-up” above, keeping this “only one way” is why 1 is not counted as a prime. Multiplying by 1 changes nothing, so if 1 were a prime, you could keep adding 1s endlessly.

How do we know there are infinitely many primes?

Euclid’s Elements, from about 300 BC, has a short proof. In today’s words, it goes like this. Suppose you have a list of some primes. Multiply all the primes on the list and add 1. For example, if the list is 2, 3, 5, 7, 11, 13, you get 2 × 3 × 5 × 7 × 11 × 13 + 1 = 30031.

The product of all the listed primes is divisible by each of them. So 30031, one more than that, leaves 1 when divided by any prime on the list. But every whole number of 2 or more is divisible by some prime (if it is itself prime, by itself). 30031 is 2 or more, so some prime divides it, but no prime on the list does, so that prime must be off the list. Indeed, 30031 is 59 × 509, and neither 59 nor 509 is on the list.

Whatever list you make, the same trick finds a prime that is not on it, so a list of primes can never be complete. In other words, there are infinitely many primes.

A common mix-up is that “multiplying them all and adding 1 always gives a prime”. Sometimes it does, as in 2 × 3 × 5 + 1 = 31, but sometimes it doesn’t, as with 30031. All the proof needs is that the result is divisible by some prime not on the list.

How many primes are there?

There are 25 up to 100, 168 up to 1,000, and 78,498 up to a million. Up to 100, 1 number in 4 is prime, but up to a million it is about 1 in 13. The bigger the numbers, the sparser the primes.

There is a rule of thumb for how sparse they get. As x grows, the ratio between the number of primes up to x and x ÷ log x gets closer and closer to 1. Log x is a very slow number that grows by only about 2.3 each time x gets ten times bigger. Put another way, near x, about 1 in every log x numbers is prime. Near a trillion, for example, it is about 1 in 28.

This is called the prime number theorem. At the end of the eighteenth century, Gauss and Legendre studied how the primes add up and made a guess, and in 1896 Hadamard and de la Vallée Poussin each proved it separately. The proofs used the zeta function that Riemann had studied.

The estimate x ÷ log x is about 72,382 at a million, a little smaller than the true 78,498. Another estimate that Gauss considered, Li(x), is about 78,628, even closer.

Is there a pattern in how the primes are spaced?

Where the next prime turns up is very irregular. There are pairs only 2 apart, like 11 and 13 or 17 and 19 (twin primes), yet the next prime after 113 is 127, and none of the 13 numbers in between is prime.

Stretches with no primes can be made as long as you like. For example, multiply all the numbers from 1 to 7 to get 5040, then add 2, 3, 4, 5, 6 and 7: the six numbers from 5042 to 5047 are divisible by 2, 3, 4, 5, 6 and 7 in turn, so none of them is prime. The same trick gives a prime-free stretch 100 or even 10,000 numbers long. On the other hand, whether there are infinitely many twin primes is still not known (the twin prime conjecture).

Although each position is irregular, counted up, the primes grow just as the prime number theorem estimates. How small the gap from Gauss’s estimate Li(x) stays is what the Riemann Hypothesis asks. If it is true, then, counted up, the primes are spread out as regularly as they possibly could be.

How are primes used in encryption?

RSA, one widely used kind of encryption, uses primes. It was presented in a 1978 paper by Rivest, Shamir and Adleman (the name comes from their initials). The person making the keys secretly picks two big primes, p and q, and publishes their product, n, as part of a key that anyone can use.

Multiplying takes an instant, but finding p and q again from n (factoring it) gets very hard when the numbers are big. The safety of this encryption depends on that difficulty. Under the rules of the US standards agency, NIST, the n used for RSA by the government must be 2048 bits (617 decimal digits) or more.

On the other hand, finding primes a few hundred digits long, the size used in encryption, is not hard, because whether a number is prime can be checked quickly without splitting it. The 1978 paper estimates from the prime number theorem that if you want a 100-digit prime, picking 100-digit odd numbers at random and checking them one by one turns one up after about 115 tries on average.

However, in 1994 Shor showed that a large enough quantum computer could factor quickly. So in 2024 the US standards agency adopted new encryption standards built to stand up to quantum computers, and urged that the switch to them begin as soon as possible.

What is the largest known prime?

As of November 2026, the largest known prime is 2 to the power of 136,279,841, minus 1 (2^136279841 − 1). Written out in ordinary digits, it is 41,024,320 digits long, over 16 million digits longer than the previous record. It was found in October 2024 by Luke Durant, through GIMPS, a project in which people search for primes together over the internet, using thousands of GPUs (chips that are good at graphics calculations) in the cloud, spread across datacenters in 17 countries.

Primes of the form 2^p − 1 are called Mersenne primes (after Marin Mersenne, a French monk of the seventeenth century). With this one, 52 Mersenne primes are known. The largest known prime has almost always been a Mersenne prime, because numbers of this form have a specially fast way to check whether they are prime (the Lucas–Lehmer test).

2^p − 1 can be prime only when p is prime. But even when p is prime, it is not always prime. For example, 2^11 − 1 = 2047 = 23 × 89.

There are infinitely many primes, so there are endlessly many primes bigger than this one. “The largest known prime” means the largest one found so far and confirmed to be prime.

Check yourself

  1. Q11 can be divided evenly only by 1 (itself), yet today’s mathematics does not count 1 as a prime. Why not?

    Answer and explanation

    Answer: B Because if 1 counted, prime splits would not be unique

    Multiplying by 1 changes nothing, so if 1 were a prime, you could add as many 1s as you like, 6 = 2 × 3 = 1 × 2 × 3 = 1 × 1 × 2 × 3 …, and there would no longer be just one way to split into a product of primes. 1 is odd, so counting it would still leave 2 as the only even prime. And Euclid’s proof shows there are infinitely many primes whether or not 1 is counted.

    More on this → Key points: What does it mean that prime factorization is “only one way”?

  2. Q2Following Euclid’s proof that there are infinitely many primes, multiplying all the primes on the list 2, 3, 5, 7, 11, 13 and adding 1 gives 30031. Which is true of 30031?

    Answer and explanation

    Answer: C Only primes not on the list divide it

    The product of all the listed primes is divisible by each of them, so 30031, one more than that, leaves 1 when divided by any of them. But 30031 is not prime: it is 59 × 509. Neither 59 nor 509 is on the list. Multiplying them all and adding 1 does not always give a prime, but either way, it reveals a prime that is not on the list.

    More on this → Key points: How do we know there are infinitely many primes?

  3. Q3In RSA encryption, the answer from multiplying two big primes is published as part of a key that anyone can see. Why is this system safe?

    Answer and explanation

    Answer: A Multiplying is quick, but finding the two from the answer is slow

    Multiplying two big primes takes an instant, but finding the two again from the answer (factoring it) is very hard when the numbers are big, and the safety depends on that difficulty. Meanwhile, whether a number is prime can be checked quickly without splitting it. So finding primes a few hundred digits long, the size used in encryption, is not hard either.

    More on this → Key points: How are primes used in encryption?

Related explainer videos

Sources and how we checked

AI wrote this page from the sources above, and a different AI checked it against the text of those sources (November 21, 2026). A person with a master’s degree in science and a Japanese high-school science teaching license also read and checked it before publishing. Numbers are as of that date. If anything was hard to follow, you spot a mistake, or there’s a term you’d like explained, please write to [email protected].

Glossary

All 10 Math terms →