# Is 1 a prime number?

**URL:** <https://boards.straightdope.com/t/is-1-a-prime-number/88078>\
**Category:** Factual Questions\
**Created:** [October 17, 2001, 10:05pm UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078 "2001-10-17T22:05:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gomez](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@Gomez](https://boards.straightdope.com/u/Gomez)\
**Post date:** [October 17, 2001, 10:05pm UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/1 "2001-10-17T22:05:44Z")

</div>

I’ve never been sure of this. Some people think it is, some think it isn’t. What’s the Straight Dope?

---

<div class="post-metadata">

**Author:** ![Patty\_O\_Furniture](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@Patty\_O\_Furniture](https://boards.straightdope.com/u/Patty_O_Furniture)\
**Post date:** [October 17, 2001, 10:13pm UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/2 "2001-10-17T22:13:47Z")

</div>

Prime numbers must have two factors. The number one has only one factor, itself.

---

<div class="post-metadata">

**Author:** ![Seraphim](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@Seraphim](https://boards.straightdope.com/u/Seraphim)\
**Post date:** [October 17, 2001, 10:22pm UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/3 "2001-10-17T22:22:25Z")

</div>

From [http://mathforum.org/dr.math/problems/christy10.6.97.html](http://mathforum.org/dr.math/problems/christy10.6.97.html)

> [@](#):
>
> One is neither a prime nor a composite number. A prime number is one with exactly two positive divisors, itself and one. One has only one positive divisor. It cannot be written as a product of two factors, neither of which is itself, so one is also not composite. It falls in a class of numbers called units. These are the numbers whose reciprocals are also whole numbers.

There you go: not prime and not composite.

---

<div class="post-metadata">

**Author:** ![kniz](https://avatars.discourse-cdn.com/v4/letter/k/c37758/32.png) [@kniz](https://boards.straightdope.com/u/kniz)\
**Post date:** [October 17, 2001, 10:23pm UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/4 "2001-10-17T22:23:02Z")

</div>

> [@](#):
>
> _[Encyclopedia.com](http://Encyclopedia.com)_  
> **An important area in number theory is the analysis of prime numbers. A prime number is an integer p\>1 divisible only by 1 and p; the first few primes are 2, 3, 5, 7, 11, 13, 17, and 19.**

I have nothing further to add.

[fixed coding]

[Edited by bibliophage on 10-18-2001 at 04:52 AM]

---

<div class="post-metadata">

**Author:** ![Gomez](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@Gomez](https://boards.straightdope.com/u/Gomez)\
**Post date:** [October 17, 2001, 10:47pm UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/5 "2001-10-17T22:47:27Z")

</div>

Thanks guys. That was bugging me.

---

<div class="post-metadata">

**Author:** ![NevarMore](https://avatars.discourse-cdn.com/v4/letter/n/7feea3/32.png) [@NevarMore](https://boards.straightdope.com/u/NevarMore)\
**Post date:** [October 17, 2001, 11:29pm UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/6 "2001-10-17T23:29:13Z")

</div>

cant be. all prime numbers fit this formula: 2 to the nth power + 1 . not that doesnt mean that ALL numbers that fit that are prime, but say 17 is prime because 17 = 2 rasied to the 4th + 1. you cant get the number one to fit this.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [October 17, 2001, 11:37pm UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/7 "2001-10-17T23:37:44Z")

</div>

> [@](#):
>
> \*Originally posted by NevarMore \*  
> \*\*cant be. all prime numbers fit this formula: 2 to the nth power + 1 . not that doesnt mean that ALL numbers that fit that are prime, but say 17 is prime because 17 = 2 rasied to the 4th + 1. you cant get the number one to fit this. \*\*

Can’t be true; 7 is prime. However, if a prime is of the form 2[sup]n[/sup]+1, I believe you can derive a perfect number from it.

FWIW, one is what’s called a unit. In any system which has arithmetic that follows the same rules as the real numbers, there are four types of numbers: primes, composites, units, and zero divisors. These categories are (IIRC) mutually exclusive.

---

<div class="post-metadata">

**Author:** ![El\_Zagna](https://avatars.discourse-cdn.com/v4/letter/e/d2c977/32.png) [@El\_Zagna](https://boards.straightdope.com/u/El_Zagna)\
**Post date:** [October 18, 2001, 12:11am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/8 "2001-10-18T00:11:30Z")

</div>

I assume everyone’s right and one is not prime, but now I’m curious as to why the definition for a prime number seems have been made to explicitly eliminate one as a prime number. Take Seraphim’s definition: “A prime number is one with exactly two positive divisors, itself and one. One has only one positive divisor.”

I’m reminded of a thread a few months back that discussed the meaning of any number taken to the power of zero. IIRC that was defined as always being equal to 1 even though there was no fundamental reason for it. It was more of a convention that was accepted to make other calcualtions work.

So I guess I’m asking if there something behind defining “prime” so as to exclude one.

---

<div class="post-metadata">

**Author:** ![SCSimmons](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@SCSimmons](https://boards.straightdope.com/u/SCSimmons)\
**Post date:** [October 18, 2001, 12:17am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/9 "2001-10-18T00:17:25Z")

</div>

Yes-if one is prime, then the Fundamental Theorem of Arithmetic is false. As you can guess from the name, this would suck. 🙂 The FTA states that there is exactly one prime factorization for any composite number. Eg. 12 can be factored as 2_2_3, and there is no other collection of primes that yields 12 when multiplied together. If 1 is considered prime, then this isn’t true-for instance, there’s 1_2_2_3, 1_1_2_2\*3, etc. Now, you could re-define the FTA to account for this-but it makes a lot of things a lot easier to just leave 1 out of this altogether …

---

<div class="post-metadata">

**Author:** ![Googler](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@Googler](https://boards.straightdope.com/u/Googler)\
**Post date:** [October 18, 2001, 12:41am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/10 "2001-10-18T00:41:15Z")

</div>

A non-unit p is prime iff if p divides ab then p divides a or p divides b or p divides both a and b.  
by this dfiniton -p would also be a prime. Ok.I heard this long ago…they are called associative primes(i think…)

---

<div class="post-metadata">

**Author:** ![jcgmoi](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@jcgmoi](https://boards.straightdope.com/u/jcgmoi)\
**Post date:** [October 18, 2001, 1:02am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/11 "2001-10-18T01:02:15Z")

</div>

**Googler** : Not sure what you’re talking about here. If p=6, a=12, b=18 your criterion is met but 6 is non-prime.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [October 18, 2001, 1:05am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/12 "2001-10-18T01:05:55Z")

</div>

Theorem: If a prime p divides ab, then p divides a or p divides b.

Note that the mathematical “or” is non-exclusive, so this allows that p divides a and p divides b.

---

<div class="post-metadata">

**Author:** ![Orbifold](https://avatars.discourse-cdn.com/v4/letter/o/779978/32.png) [@Orbifold](https://boards.straightdope.com/u/Orbifold)\
**Post date:** [October 18, 2001, 1:11am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/13 "2001-10-18T01:11:46Z")

</div>

> [@](#):
>
> _Originally posted by jcgmoi_  
> **Googler: Not sure what you’re talking about here. If p=6, a=12, b=18 your criterion is met but 6 is non-prime.**

The statement “if p divides ab then p divides a or p divides b” has to be true for all a and b for p to qualify as a prime. So for p=6, while a=12, b=18 does work the combination a=4, b=9 does not.

---

<div class="post-metadata">

**Author:** ![Achernar](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Achernar](https://boards.straightdope.com/u/Achernar)\
**Post date:** [October 18, 2001, 1:49am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/14 "2001-10-18T01:49:13Z")

</div>

**NevarMore** : “all prime numbers fit this formula: 2 to the nth power + 1 .”

What you’re thinking of are called Mersenne primes, and they fit the form 2[sup]n[/sup] - 1. The smallest such examples are 3 (n = 2), 7 (n = 3), and 31 (n = 5). Each Mersenne prime corresponds to an even perfect number, and vice versa. If 2[sup]n[/sup] - 1 is prime, then (2[sup]n - 1[/sup])(2[sup]n[/sup] - 1) is perfect. The smallest perfect numbers are 6 (n = 2), 28 (n = 3), and 496 (n = 5). There are, last I heard, 60-something Mersenne primes known, and it is not known whether there are an infinite number or not. Conversely, it is known that there are infinite number of primes.

If 1 were prime, then 2[sup]n[/sup] - 1 would be prime for n = 1, and so 1 would be perfect. But, as has been said, it’s not.

---

<div class="post-metadata">

**Author:** ![Seraphim](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@Seraphim](https://boards.straightdope.com/u/Seraphim)\
**Post date:** [October 18, 2001, 3:49am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/15 "2001-10-18T03:49:29Z")

</div>

> [@](#):
>
> \*Originally posted by NevarMore \*  
> **cant be. all prime numbers fit this formula: 2 to the nth power + 1**

Actually, what you’re describing is a subclass of primes called Germain primes, which are all of the form 2[sup]N[/sup] + 1. As others have pointed out, not all primes can be written as that.

What you **meant** to say was that all prime numbers can be written as either 4n + 1 or 4n - 1. This is called Fermat’s Prime Theorem (not to be confused with his Last Theorem). Predictably, he left it for others to prove this theorem too.

---

<div class="post-metadata">

**Author:** ![Cabbage](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Cabbage](https://boards.straightdope.com/u/Cabbage)\
**Post date:** [October 18, 2001, 4:17am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/16 "2001-10-18T04:17:33Z")

</div>

**Seraphim**

Actually, [Germain primes](http://www.utm.edu/research/primes/lists/top20/SophieGermain.html) are something else, click the link for more info.

Maybe **NevarMore** was thinking of Fermat primes–primes of the form 2[sup]2[sup]n[/sup][/sup] + 1. (Not all primes are of this form, of course, and it’s not known how many Fermat primes there are).

Finally:

> [@](#):
>
> What you meant to say was that all prime numbers can be written as either 4n + 1 or 4n - 1. This is called Fermat’s Prime Theorem (not to be confused with his Last Theorem). Predictably, he left it for others to prove this theorem too.

I find this impossible to believe. Number one, it’s not true (2 is a prime not of this form). Number two, if we make the obvious correction (All primes other than 2 can be written as either 4n+1 or 4n-1), then this simply states the obvious fact that all primes (other than 2) are odd. I’m sure this was common knowledge long before Fermat.

---

<div class="post-metadata">

**Author:** ![John\_Kentzel-Griffin](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@John\_Kentzel-Griffin](https://boards.straightdope.com/u/John_Kentzel-Griffin)\
**Post date:** [October 18, 2001, 5:06am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/17 "2001-10-18T05:06:17Z")

</div>

An integral prime is a complex integral prime if and only if it is of the form 4n - 1.

2 is not of the form and can be written as (1+_i_)(1-_i_).

3 is 2\*2 - 1 and is a complex prime.

5 is not of the form and can be written (4+_i_)(4-_i_).

That is the only thing I can think of about whether a prime can be written as 4n - 1 or not. Is that what you were thinking of?

---

<div class="post-metadata">

**Author:** ![Boris\_B](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@Boris\_B](https://boards.straightdope.com/u/Boris_B)\
**Post date:** [October 18, 2001, 6:17am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/18 "2001-10-18T06:17:12Z")

</div>

In answer to **bnorton** :

One reason I think it’s important to consider 1 not to be a prime number is it kind of messes up the way composite numbers are considered. A composite number can be broken down into a _limited_ number of factors (all of which have to integers). You can break those factors that are down into composites into their factors, and so on, until all you’ve got is a bunch (but again, a limited bunch) of prime numbers.

If you let one into the mix, the lid blows off. The number 12, when broken down into primes strictly, is just 2x2x3. If you consider one a prime, it could be 1x1x2x1x1x2x3 and you’d never really be done.

The point is, one just isn’t important as a factor; you can multiply a number by one a kazillion times and it wouldn’t change. Only the true primes are important as factors.

---

<div class="post-metadata">

**Author:** ![Boris\_B](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@Boris\_B](https://boards.straightdope.com/u/Boris_B)\
**Post date:** [October 18, 2001, 6:21am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/19 "2001-10-18T06:21:12Z")

</div>

I italicized most of my post and I totally repeated what SCSimmons had to say. Redundant and poorly formatted. ☹

---

<div class="post-metadata">

**Author:** ![Seraphim](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@Seraphim](https://boards.straightdope.com/u/Seraphim)\
**Post date:** [October 18, 2001, 7:10am UTC](https://boards.straightdope.com/t/is-1-a-prime-number/88078/20 "2001-10-18T07:10:17Z")

</div>

> [@](#):
>
> \*Originally posted by Cabbage \*  
> **Seraphim**
> 
> Actually, [Germain primes](http://www.utm.edu/research/primes/lists/top20/SophieGermain.html) are something else, click the link for more info.

Dang, I thought the format looked familiar, but I should have done some more research first. Mea culpa.

> [@](#):
>
> > [@](#):
> >
> > What you meant to say was that all prime numbers can be written as either 4n + 1 or 4n - 1. This is called Fermat’s Prime Theorem (not to be confused with his Last Theorem). Predictably, he left it for others to prove this theorem too.
> 
> I find this impossible to believe. Number one, it’s not true (2 is a prime not of this form). Number two, if we make the obvious correction (All primes other than 2 can be written as either 4n+1 or 4n-1), then this simply states the obvious fact that all primes (other than 2) are odd. I’m sure this was common knowledge long before Fermat. \*\*

Well, I condensed things. What Fermat said in full was that primes of the form of 4n+1 are always the sum of two squares, whereas those of the form 4n-1 can never be written this way. [This](http://www.cs.vu.nl/~avreugd/abstract/numbertheory/4nplus1.htm) site elaborates more on that theorem. I still stand by my assertion that all primes (other than 2) can be expressed as either of these forms.

[Next page](https://boards.straightdope.com/t/is-1-a-prime-number/88078.md?page=2)
