Prime or Composite

Factors & Multiples practice

Decide whether a whole number from 2 to 100 is prime or composite.

Start Practice

About this practice

Choose prime or composite for one whole number at a time.

Every number is a whole number from 2 to 100. About half are prime. The composite numbers include easy even ones, square numbers, and odd numbers such as 91 that look prime but are not. If you miss one, the answer shows why: a composite number is shown as a product, and a prime number's two factors are named.

Typical level: Grade 4 Often introduced in Grade 4 (U.S. Common Core 4.OA.B.4). Curriculum timing varies.

How to tell if a number is prime or composite

A prime number has exactly two positive factors: 1 and itself.

A composite number has more than two positive factors.

Count the factors: 13 and 12

13 is prime

Factor pairs

  • 1 × 13

Factors

1, 13

Exactly two factors

12 is composite

Factor pairs

  • 1 × 12
  • 2 × 6
  • 3 × 4

Factors

1, 2, 3, 4, 6, 12

Six factors: more than two

How to check a number up to 100

For numbers from 2 to 100, check 2, 3, 5 and 7. If the number itself is one of these, it is prime. Otherwise, if one of them divides evenly, the number is composite. If none does, it is prime.

Is 1 prime or composite? What about 0?

Neither. Prime and composite describe whole numbers greater than 1. The number 1 has only one positive factor, itself. 0 is left out by definition: every positive whole number divides 0. That is why this practice starts at 2.

Are all odd numbers prime?

No. Being odd only rules out 2 as a factor, and 2 is the only even prime. Is 51 prime or composite?

  • Thinking every odd number is prime

    Not this

    51 is prime

    51 is odd and does not end in 5, but that only rules out 2 and 5 as factors.

    Do this

    51 = 3 × 17

    Keep testing small primes: 51 ÷ 3 = 17 with no remainder, so 51 is composite.