01 / 20
7 PRIME

Prime & Composite
Numbers

Learn how to determine whether a number is prime or composite by examining its factors.

SHSAT Math

First, What Is a Factor?

A factor of a whole number is a number that divides it evenly, leaving no remainder. Factors always come in pairs that multiply to give the number.

Factors of 12
\( 1 \times 12 \)
\( 2 \times 6 \)
\( 3 \times 4 \)
Factors of 12: 1, 2, 3, 4, 6, 12

Prime vs. Composite

Prime Number
A whole number greater than 1 with exactly two factors: 1 and itself.
Composite Number
A whole number greater than 1 with more than two factors.

A Visual Way to See It

A prime number's objects can only form a single row. A composite number can be arranged into a rectangle with more than one row.

5 (Prime) only 1 row of 5 6 (Composite) 2 rows of 3

The Core Rule

Two Special Cases

The Number 1
Has only one factor (itself). Since prime requires exactly two factors, 1 is neither prime nor composite.
The Number 2
The only even prime. Its factors are just 1 and 2. Every other even number is composite.

How to Test a Number

1
Check the basics. If the number is \( 0 \) or \( 1 \), it is neither. If it is \( 2 \), it is prime.
2
Test small divisors. Try dividing by \( 2, 3, 5, 7, \dots \) — the primes in order.
3
Found a divisor? If any prime divides it evenly, the number is composite.
4
Stop at \( \sqrt{n} \). If no prime up to \( \sqrt{n} \) divides it, the number is prime.

Fast Divisibility Checks

Divisible by Quick Test
2Last digit is even (0,2,4,6,8)
3Digit sum is divisible by 3
5Last digit is 0 or 5
9Digit sum is divisible by 9
10Last digit is 0

Example 1: Is 17 Prime?

Test primes up to \( \sqrt{17} \approx 4.1 \)
\( 17 \div 2 \) no (odd)
\( 17 \div 3 \) no (rem 2)
\( 17 \div 5,7 \) not needed
No divisors → 17 is PRIME ✓

Example 2: Is 51 Prime?

Use the divisibility-by-3 test
\( 5 + 1 = 6 \) \( 6 \div 3 = 2 \) ✓
\( 51 = 3 \times 17 \) extra factor!
51 is COMPOSITE

Example 3: Is 29 Prime?

\( \sqrt{29} \approx 5.4 \) → test 2, 3, 5
\( 29 \div 2 \) odd → no
\( 2+9 = 11 \) not \( \div 3 \)
ends 9 not \( \div 5 \)
29 is PRIME ✓

Common Mistakes

✕ Calling 1 prime
1 has only one factor, so it is neither prime nor composite.
✕ Assuming odd = prime
Numbers like 9, 15, 21, and 51 are odd but composite.
✕ Forgetting 2 is prime
2 is the only even prime — don't rule it out for being even.

Know These Primes by Heart

Primes under 30 2 3 5 7 11 13 17 19 23 29

Summary Table

Prime Composite
Number of factorsExactly 2More than 2
Smallest example24
Even examplesOnly 24, 6, 8, 10, …
Odd examples3, 5, 7, 119, 15, 21, 51
Special: 0 and 1NeitherNeither

Question 1 of 5

Which of the following numbers is prime?

Question 2 of 5

The number \( 1 \) is best described as:

Question 3 of 5

Which statement about the number \( 2 \) is true?

Question 4 of 5

How many factors does a composite number have?

Question 5 of 5

Which number is composite?

You've Got the Key Ideas

1
Prime = exactly two factors (1 and itself).
2
Composite = more than two factors.
3
0 and 1 are neither; 2 is the only even prime.
4
Test divisibility by primes up to \( \sqrt{n} \) to decide.