A prime number is a positive whole number with exactly two factors, ie 1 and itself. So, 1 can't be a prime number because it has only one factor (1 is itself), 0 can't be prime since it has no factors at all, 2 has two factors (1 and 2) so it is prime, and is in fact the smallest prime. It is frequently overlooked however, since all the other primes are odd, and people associate primes with odd numbers.

More Info: en.wikipedia.org