The reason why 1 is said not to be a prime number is merely convenience.
For example, if 1 was prime then the prime factorization of 6 would not be
unique since 2 times 3 = 1 times 2 times 3. A number that can be written as
a product of prime numbers is composite. Thus there are three types of
natural numbers: primes, composites, and 1.
-----Original Message-----
From: Geert Josten [mailto:Geert.Josten@xxxxxxxxxxx]
Sent: 14 January 2005 08:43
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: when to use xslt
> (Apart from the fact that 1 is not a prime number).
I believe 1 _is_ a prime:
from http://www.hyperdictionary.com/dictionary/prime+number :
"an integer that has no integral factors but itself and 1"
It just happens that 'itself' is also 1 in the sentence above...
Cheers
|