Why Isn't 1 a Prime Number? (2024)

This article was published in Scientific American’s former blog network and reflects the views of the author, not necessarily those of Scientific American

An engineer friend of mine recently surprised me by saying he wasn’t sure whether the number 1 was prime or not. I was surprised because among mathematicians, 1 is universally regarded as non-prime.

The confusion begins with this definition a person might give of “prime”: a prime number is a positive whole number that is only divisible by 1 and itself. The number 1 is divisible by 1, and it’s divisible by itself. But itself and 1 are not two distinct factors. Is 1 prime or not? When I write the definition of prime in an article, I try to remove that ambiguity by saying a prime number has exactly two distinct factors, 1 and itself, or that a prime is a whole number greater than 1 that is only divisible by 1 and itself. But why go to those lengths to exclude 1?

My mathematical training taught me that the good reason for 1 not being considered prime is the fundamental theorem of arithmetic, which states that every number can be written as a product of primes in exactly one way. If 1 were prime, we would lose that uniqueness. We could write 2 as 1×2, or 1×1×2, or 1594827×2. Excluding 1 from the primes smooths that out.

On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.

My original plan of how this article would go was that I would explain the fundamental theorem of arithmetic and be done with it. But it’s really not so hard to modify the statement of the fundamental theorem of arithmetic to address the 1 problem, and after all, my friend’s question piqued my curiosity: how did mathematicians coalesce on this definition of prime? A cursory glance around some Wikipedia pages related to number theory turns up the assertion that 1 used to be considered prime but isn’t anymore. But a paper by Chris Caldwell and Yeng Xiong shows the history of the concept is a bit more complicated. I appreciated this sentiment from the beginning of their article: “First, whether or not a number (especially unity) is a prime is a matter of definition, so a matter of choice, context and tradition, not a matter of proof. Yet definitions are not made at random; these choices are bound by our usage of mathematics and, especially in this case, by our notation.”

Caldwell and Xiong start with classical Greek mathematicians. They did not consider 1 to be a number in the same way that 2, 3, 4, and so on are numbers. 1 was considered a unit, and a number was composed of multiple units. For that reason, 1 couldn’t have been prime — it wasn’t even a number. Ninth-century Arab mathematician al-Kindīwrote that it was not a number and therefore not even or odd. The view that 1 was the building block forall numbers but not a number itself lasted for centuries.

In 1585, Flemish mathematician Simon Stevin pointed out that when doing arithmetic in base 10, there is no difference between the digit 1 and any other digits. For all intents and purposes, 1 behaves the way any other magnitude does. Though it was not immediate, this observation eventually led mathematicians to treat 1 as a number, just like any other number.

Through the end of the 19th century, some impressive mathematicians considered 1 prime, and some did not. As far as I can tell, it was not a matter that caused strife; for the most popular mathematical questions, the distinction was not terribly important. Caldwell and Xiong cite G. H. Hardy as the last major mathematician to consider 1 to be prime. (He explicitly included it as a prime in the first six editions of A Course in Pure Mathematics, which were published between 1908 and 1933. He updated the definition in 1938 to make 2 the smallest prime.)

The article mentions but does not delve into some of the changes in mathematics that helped solidify the definition of prime and excluding 1. Specifically, one important change was the development of sets of numbers beyond the integers that behave somewhat like integers.

In the very most basic example, we can ask whether the number -2 is prime. The question may seem nonsensical, but it can motivate us to put into words the unique role of 1 in the whole numbers. The most unusual aspect of 1 in the whole numbers is that it has a multiplicative inverse that is also an integer. (A multiplicative inverse of the number x is a number that when multiplied by x gives 1. The number 2 has a multiplicative inverse in the set of the rational or real numbers, 1/2: 1/2×2=1, but 1/2 is not an integer.) The number 1 happens to be its own multiplicative inverse. No other positive integer has a multiplicative inverse within the set of integers.* The property of having a multiplicative inverse is called being a unit. The number -1 is also a unit within the set of integers: again, it is its own multiplicative inverse. We don’t consider units to be either prime or composite because you can multiply them by certain other units without changing much. We can then think of the number -2 as not so different from 2; from the point of view of multiplication, -2 is just 2 times a unit. If 2 is prime, -2 should be as well.

I assiduously avoided defining prime in the previous paragraph because of an unfortunate fact about the definition of prime when it comes to these larger sets of numbers: it is wrong! Well, it’s not wrong, but it is a bit counterintuitive, and if I were the queen of number theory, I would not have chosen for the term to have the definition it does. In the positive whole numbers, each prime number p has two properties:

The number p cannot be written as the product of two whole numbers, neither of which is a unit.

Whenever a product m×n is divisible by p, then m or n must be divisible by p. (To check out what this property means on an example, imagine that m=10, n=6, and p=3.)

The first of these properties is what we might think of as a way to characterize prime numbers, but unfortunately the term for that property is irreducible. The second property is called prime. In the case of positive integers, of course, the same numbers satisfy both properties. But that isn’t true for every interesting set of numbers.

As an example, let’s look at the set of numbers of the form a+b√-5, or a+ib√5, where a and b are both integers and i is the square root of -1. If you multiply the numbers 1+√-5 and 1-√-5, you get 6. Of course, you also get 6 if you multiply 2 and 3, which are in this set of numbers as well, with b=0. Each of the numbers 2, 3, 1+√-5, and 1-√-5 cannot be broken down further and written as the product of numbers that are not units. (If you don’t take my word for it, it’s not too difficult to convince yourself.) But the product (1+√-5)(1-√-5) is divisible by 2, and 2 does not divide either 1+√-5 or 1-√-5. (Once again, you can prove it to yourself if you don’t believe me.) So 2 is irreducible, but it is not prime. In this set of numbers, 6 can be factored into irreducible numbers in two different ways.

The number set above, which mathematicians might call Z[√-5] (pronounced "zee adjointhe square root of negative five" or "zed adjointhe square root of negative five, pip pip, cheerio" depending on what you like to call the last letter of the alphabet), has two units, 1 and -1. But there are similar number sets that have an infinite number of units. As sets like this became objects of study, it makes sense that the definitions of unit, irreducible, and prime would need to be carefully delineated. In particular, if there are number sets with an infinite number of units, it gets more difficult to figure out what we mean by unique factorization of numbers unless we clarify that units cannot be prime. While I am not a math historian or a number theorist and would love to read more about exactly how this process took place before speculating further, I think this is one development Caldwell and Xiong allude to that motivated the exclusion of 1 from the primes.

As happens so often, my initial neat and tidy answer for why things are the way they are ended up being only part of the story. Thanks to my friend for asking the question and helping me learn more about the messy history of primality.

*This sentence was edited after publication to clarify that no other positive integer has a multiplicative inverse that is also an integer.

Why Isn't 1 a Prime Number? (2024)

FAQs

Why Isn't 1 a Prime Number? ›

1 can only be divided by one number, 1 itself, so with this definition 1 is not a prime number. It is important to remember that mathematical definitions develop and evolve. Throughout history, many mathematicians considered 1 to be a prime number although that is not now a commonly held view.

Why is 1 not a prime number? ›

The answer to this lies in the definition of prime numbers itself. For a number to be called as a prime number, it must have only two positive factors. Now, for 1, the number of positive divisors or factors is only one i.e. 1 itself. So, number one is not a prime number.

Why is the number 1 neither a prime? ›

1 is not a prime number because it can not be divided by any other integer except for 1 and itself. The only factor of 1 is 1. On the other hand, 1 is also not a composite number because it can not be divided by any other integer except for 1 and itself. In conclusion, the number 1 is neither prime nor composite.

When did 1 stop being a prime number? ›

By the early 20th century, mathematicians began to agree that 1 should not be listed as prime, but rather in its own special category as a "unit".

Why is 2 a prime number and 1 isn t? ›

1 is not a prime number because it has only one factor, namely 1. Prime numbers need to have exactly two factors. Why is 2 a prime number? 2 is a prime number because its only factors are 1 and itself.

Is 1 a prime number, yes or no? ›

No, 1 is not a prime number. The number 1 has only 1 factor. For a number to be classified as a prime number, it should have exactly two factors. Since 1 has less than two factors, it is not a prime number.

Why does 1 and 0 have no prime numbers? ›

Number 1 has positive divisors as 1 and itself and it must have only two positive factors. Now, for 1, the number of positive factors is only one i.e., 1 itself. So, number one is not a prime number and one is not a composite number also. Therefore, 0 and 1 both are not a prime number.

What is the smallest prime number? ›

2 is the smallest prime number. 2 is the only prime number which is even. 2 and 3 are the only consecutive prime numbers.

What is number 1 also known as? ›

1 (one, unit, unity) is a number representing a single or the only entity. 1 is also a numerical digit and represents a single unit of counting or measurement.

What would happen if 1 was prime? ›

If 1 was prime by the usual definition It would mean 1 is divisible by 4 different integers, which breaks multiplication and division completely. So, basically, arithmetics would stop making sense.

Are prime numbers rare? ›

Prime numbers are abundant at the beginning of the number line, but they grow much sparser among large numbers. Of the first 10 numbers, for example, 40 percent are prime — 2, 3, 5 and 7 — but among 10-digit numbers, only about 4 percent are prime.

Why is 11 not a prime number? ›

Yes, 11 is a prime number. The number 11 is divisible only by 1 and the number itself. For a number to be classified as a prime number, it should have exactly two factors. Since 11 has exactly two factors, i.e. 1 and 11, it is a prime number.

Why is 1 not a prime number anymore? ›

1 can only be divided by one number, 1 itself, so with this definition 1 is not a prime number. It is important to remember that mathematical definitions develop and evolve. Throughout history, many mathematicians considered 1 to be a prime number although that is not now a commonly held view.

What is 1 called if it is not a prime? ›

The number 1 is a unit - "unity" - it is neither prime nor composite.

Why is 2 a prime number? ›

According to the definition of prime numbers, any whole number which has only 2 factors is known as a prime number. Now, the factors of 2 are 1 and 2. Since there are exactly two factors of 2, it is a prime number.

What type of number is 1? ›

Main types

): The counting numbers {1, 2, 3, ...} are commonly called natural numbers; however, other definitions include 0, so that the non-negative integers {0, 1, 2, 3, ...} are also called natural numbers. Natural numbers including 0 are also sometimes called whole numbers.

References

Top Articles
Latest Posts
Article information

Author: Lakeisha Bayer VM

Last Updated:

Views: 5920

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Lakeisha Bayer VM

Birthday: 1997-10-17

Address: Suite 835 34136 Adrian Mountains, Floydton, UT 81036

Phone: +3571527672278

Job: Manufacturing Agent

Hobby: Skimboarding, Photography, Roller skating, Knife making, Paintball, Embroidery, Gunsmithing

Introduction: My name is Lakeisha Bayer VM, I am a brainy, kind, enchanting, healthy, lovely, clean, witty person who loves writing and wants to share my knowledge and understanding with you.