According to Wikipedia, “1 is not prime, as it is specifically excluded in the definition.” Why is 1 excluded? What’s the reasoning for not including it? Does it lead to some sort of contradiction that I’m not seeing?
For most mathematical facts that apply to prime numbers, it’s simpler if 1 isn’t one of them. Most notably is the Unique Prime Factorization Theorem: Any positive integer can be expressed as the product of primes in exactly one way. For instance, 42 = 237. But if we allowed 1 as a prime, then we could also say that 42 = 1237, or 42 = 111123*7, or whatever.
It’s a matter of convenience. Historically, 1 was often considered prime. But if 1 is prime, then it turns out there’s a lot of stuff where you have to say “for all prime numbers, except 1” to get it to work. So a consensus evolved that the definition of prime numbers would exclude 1.
Primes (excluding 1) are like single-character strings, of length 1; “a”, “b”, “c”, “d”.
1 is like the empty string, of length 0; “”.
Composite numbers are like strings of length > 1; “hi”, “jack”, “afkafshaf”, etc. They’re made up of multiple single-character strings stuck together. Every string decomposes in an essentially unique way as a composition of single characters.
The single-character strings have much, much more in common with each other than they do with the empty string. And so it is convenient to have a nice name for them. (In string-world, we call them “characters” or “letters”. In the multiplying-numbers-world side of this analogy, we call them “prime numbers”).
It’s true that if you consider the property “My only substrings are myself and the empty string” (i.e., “I am a string of size ≤ 1”), it is satisfied by both the single-letter strings and the empty string satisfy. Sometimes one might care to consider this property; it might as well be given a name too, if you find yourself using it a lot. But much less often does this concept naturally come up.
True, but only if you define string concatenation to commute, such that “a” : “b” is considered to be the same string as “b” : “a”, and this doesn’t usually work in most contexts where strings are being concatenated.
The inequality li(x) > π(x) holds for all small numbers, and perhaps for all positive integers less than 10^316. Nobody has ever demonstrated a specific exception to li(x) > π(x), although it is now known that there are many googols of such exceptions near 10^316.
Even ignoring x=1, if the definition of prime is changed to include 1, then 2, 3 and 4 would all be exceptions to li(x) > π(x).
If you count negative integers as numbers, then you have to take them into account and yes, they are; units like 1 and -1 are not counted in the factorization.
It might also be simpler to think of a prime number as one for which whenever p divides ab, then p divides a or p divides b (and p is not zero or a unit).
In school we were taught that one is not a prime number based on this definition of a prime number: “A prime number is a whole number greater than 1 whose only factors are 1 and itself.”
The fact that one IS itself makes it suspiciously odd even to a grade school student. LOL
Since it is a matter of definition, we define prime in the most convenient way possible. And that is to exclude 1 (and -1) for all the reasons mentioned above. It is just simpler that way. The primes are the atoms of the numbers and we don’t count nothing as an atom.
Incidentally, if you look at the Gaussian integers, numbers of the form a + bi, where a and b are integers and i is the square root of -1, you now have to exclude 1, -1, i, and -i from being counted as primes. Also 2 = (1+i)(1-i) is no longer prime. Nor is 5 = (2+i)(2-i). But 1+i, 2+i, and 3 are all prime.
Sure; I’m not saying it’s an exact isomorphism (although it is exact up to commutativity), just that this is an analogy to another example one might think about where the same phenomenon is in play, of why “things of simplicity level exactly 1” tends to be a more natural concept than “things of simplicity level either 0 or 1”.
The prime numbers all have far more in common with each other than they do with 1, even though both are “simpler” than composite numbers, in just the same way that the single letters all have far more in common with each other than they do with the empty string, even though both are “simpler” than longer strings.
And this same kind of phenomenon arises over and over elsewhere in mathematics as well (see too simple to be simple in nLab, though this will not be a useful page for anyone who is not already a certain kind of mathematician).
The parenthetical exclusion of units will seem ad hoc, but should be unified with the rest of the definition:
A prime number, in this sense, is one which only divides the product of some list of values when there is some value in that list which it divides. This is true not just of lists of 2 values, but also lists of 3 values, lists of 4 values… and even lists of 0 values.
A prime only divides the product of an empty list (which comes out to 1) when there is some value in that list which it divides (which of course can’t happen, since the list is empty); thus, a prime is not allowed to divide 1.
So the exclusion of 1 and other units from the prime numbers in this sense is hardly ad hoc; it’s just part of the same divisibility condition. (The exclusion of zero from the primes is genuinely a separate condition here, though; it would otherwise be a, well, prime example of such a thing.)
So most properly, the list of primes is …-5, -3, -2, 2, 3, 5 …, eh?
If I ever found the largest prime, I would take its negative and say I found the smallest prime, just to see how the popular media would deal with that!
Most commonly, when people talk about prime numbers, they’re working with the set of natural numbers (positive integers), in which the primes would only be positive 2, 3, 5, … You wouldn’t include -2, -3, -5, … because they don’t exist within that context. In other contexts, they do exist, but they might or might not be prime depending on what other numbers exist.
Since this might be clearer with some examples: Suppose that I want to know if 6 is prime. I can compare it to the list {4,7,9}, for instance. 6 does not divide any of those numbers… but if I multiply them all together, I get 252, and 6 does divide 252 (252 = 6*42). So since there is a list of numbers that 6 doesn’t divide, but it does divide their product, 6 is composite.
By contrast, suppose I try that with 7. I could try the list {1,10,11,14}, and the product of that list is 1540, and 7 divides that (1540 = 7*220)… but 7 also divides 14. Alternately, I could use {5,12,13,27,242} as my list, and 7 doesn’t divide any of those… but neither does it divide the product. No matter what list I try, either 7 doesn’t divide the product, or it does divide one of the numbers on the list. So 7 is prime.
Now we try it with 1: No matter what (non-empty) list of numbers I come up with, 1 always divides all of the numbers on that list. So it’s not prime, but it’s not-prime in a different way than 6 is not-prime. It’s a unit.
Or 0, of course: No matter what list of numbers I come up with, 0 never divides the list’s product, because 0 doesn’t divide anything. It’s yet another kind of non-prime, but there’s no special name for that kind of non-prime, because 0 is the only one.
And this definition also works when we expand our scope to include negative integers, or complex integers. I suppose that you could even extend it to the rationals or reals, but that’s kind of boring, because in those contexts, everything (except 0) is a unit.
It’s a nice, clean definition, but I have no doubt that what actually happened was, as freido (and Chronos) said, mathematicians realized they talked about {prime numbers not including one} far more than {prime numbers including one} and so agreed to define “prime numbers” to exclude one, to save having to say “except one” all the time when they talked primes. Only after that agreement was there a reason to find a definition of prime that naturally excludes one (after all, it must be admitted that that definition is much less clear and intuitive than the usual ‘no factors except itself and one’).
If negative numbers are included in the definition of prime numbers you no longer have unique prime factorization. 35 will be both 57 and -5-7 for instance.
This was glossed above; you need to be precise in that case what you mean by “unique factorization”. If p equals q times a unit, so that p divides q and also q divides p, then p and q are not really different primes. So, in your example, 57 and -5-7 are not truly different factorizations.
Now for a counterexample you can try adjoining √-5 to the integers. Then you really do lose unique factorization, since, e.g., 6 = 2*3 = (1+√-5)(1-√-5).