Prime and Composite Numbers - Examples and Practice Problems

Prime numbers are numbers that are only divisible by 1 and by themselves. It is possible to determine whether a number is prime or not by dividing it by several prime numbers and finding some other number that divides it without leaving a remainder.

In this article, we will look at a summary of prime and composite numbers. In addition, we will solve several problems to determine if a given number is prime or composite.

ALGEBRA
Prime and composite numbers

Relevant for...

Solving problems on prime and composite numbers.

See examples

ALGEBRA
Prime and composite numbers

Relevant for...

Solving problems on prime and composite numbers.

See examples

Summary of prime and composite numbers

Remember that prime numbers are numbers that can only be divided by 1 and by themselves. For example, 5 is a prime number since it can only be divided by 1 and 5.

On the other hand, composite numbers are those numbers that can be divided by 1, by itself, and at least by another number more. For example, 8 is a composite number since it can be divided by 1, 2, 4, and 8.

To determine if a number is prime or composite, we have to divide it by prime numbers to find out if there is another number for which it is divisible. It is advisable to try from the smallest prime numbers.

For example, we try to divide the number in question by 2, 3, 5, 7, 11, 13, 17, 19 in that order. If the number can be divided by these numbers, then it is not a prime number.

Therefore, the important thing here is that we must memorize the first prime numbers, and then use these numbers and determine if another number is prime or composite.

Number 1

Now let’s look at the number 1. We know that the rule for a number to be prime is that it be divisible only by 1 and by itself. However, the full definition of a prime number is that a prime is a number greater than 1 that is divisible only by 1 and by itself. Therefore, 1 is not a prime number. This is because 1 does not have two divisors.

Prime and composite numbers – Examples with answers

EXAMPLE 1

Determine whether 9 is a prime number or a composite number.

Solution

EXAMPLE 2

Determine whether 23 is a prime number or a composite number.

Solution

EXAMPLE 3

Determine whether 33 is a prime number or a composite number.

Solution

EXAMPLE 4

Determine whether 64 is a prime number or a composite number.

Solution

EXAMPLE 5

Determine whether 41 is a prime number or a composite number.

Solution

Prime and composite numbers – Practice problems

Prime and composite numbers quiz
Logo
You have completed the quiz!

Which number is neither prime nor composite?

Write the answer in the input box.

=

See also

Interested in learning more about algebraic topics? Take a look at these pages:

Learn mathematics with our additional resources in different topics

LEARN MORE