Sunday, June 26, 2011

PRIME AND COMPOSITE NUMBERS.

A prime number has exactly 2 factors, the number itself and 1.

In other words, the prime number can be divided only by 1 and by itself.
NOTE: 0 and 1 are not prime numbers.

Example: 5 is a prime number, because the only factors it has are 1 and 5.

The prime numbers less than 20 are 2,3,5,7,11,13,17,19

Example:

Find all prime factors of 30.

Solution:

All the factors of 30 are 30, 15, 10, 6, 5, 3, 2, 1
But only 5, 3 and 2 are prime numbers.
Thefore all prime factors of 30 are 2, 3 and 5.

A composite number has at least one more factor that the number itself or 1.
In fact, all whole numbers that are not prime are composite except for 1 and 0, which are not prime and not composite.

The composite numbers less than 20 are 4, 6, 8, 9, 10, 12, 14, 15, 16, 18

No comments:

Post a Comment