27.8k views
4 votes
Are 1 and 0 prime numbers?

User Nre
by
5.9k points

2 Answers

3 votes
Primes are only positive integers so 0 is not a prime. 1 is also not a prime because it has only 1 possible divisor.
User Jeff Cyr
by
5.6k points
1 vote

0 and 1 are neither prime nor composite.

User Elenst
by
5.8k points