Prime and composite numbers: checker and sieve

The TeachSlides prime and composite numbers tool is a free interactive checker and Sieve of Eratosthenes that lists a number’s factors, says whether it is prime or composite, writes its prime factorization with a factor tree, and animates the sieve on a 1–100 or 1–200 chart for the class screen. Type a whole number and press Check: you see whether it is prime, composite or neither, all its factors and factor pairs, and its prime factorization (36 = 2² × 3²) with a factor tree. Below, press Play the sieve to cross out multiples of 2, 3, 5 and 7 step by step until only the primes are left.

FreeRuns in your browserNothing uploaded

Sieve of Eratosthenes

Chart
Shade

  • Prime
  • Crossed out (composite)
  • 1: neither
  • Now

Click any number on the chart to check it. F: full screen.

How to use the prime and composite numbers

  1. Type a whole number and press Check (or Enter) to see if it is prime or composite, its factors, factor pairs and prime factorization.
  2. Under the chart, press Play the sieve: 1 is set aside, then the multiples of each prime are crossed out in turn, leaving the primes. Use Next step to go at the class’s pace.
  3. Switch the shading to All composites or All primes, go Full screen for the board, or print the chart as a PDF.

Why use this one

  • Shows the reasoning, not just the answer: factor pairs, a factor tree and the sieve make it clear why a number is composite.
  • For the whole class: Big, high-contrast and readable from the back of the room, with a full-screen mode (F) for the projector, the interactive whiteboard or a shared screen on Zoom, Google Meet or Teams.
  • Fast and exact: numbers up to a trillion are factored instantly in your browser.

Frequently asked questions

What is the difference between prime and composite numbers?

A prime number has exactly two factors, 1 and itself (2, 3, 5, 7, 11…). A composite number has more than two factors, so it can be made by multiplying two smaller whole numbers (4 = 2 × 2, 6 = 2 × 3, 36 = 6 × 6). 0 and 1 are neither prime nor composite.

Is 1 a prime number?

No. 1 has only one factor (itself), and a prime needs exactly two. It isn’t composite either. Leaving 1 out is also what makes every whole number’s prime factorization unique.

How does the Sieve of Eratosthenes work?

Write the numbers from 1 to 100. Cross out 1. Circle 2 and cross out every other multiple of 2; circle the next number left (3) and cross out its multiples; carry on with 5 and 7. Once the next prime squared is bigger than the chart (11 × 11 = 121 > 100), every number left is prime: there are 25 primes up to 100.

What is the prime factorization of 36?

36 = 2 × 2 × 3 × 3, written 2² × 3². Its factors are 1, 2, 3, 4, 6, 9, 12, 18 and 36 (nine factors, an odd number because 36 is a square number), so 36 is composite.

Can I link to it with my content already filled in?

Yes: put it in the address. For example, /tools/prime-composite-numbers/?n=36 opens 36 checked: composite, factors 1, 2, 3, 4, 6, 9, 12, 18, 36, and 2² × 3². Parameters: n (a whole number up to 1,000,000,000,000), grid (100 or 200). The page takes them out of the address bar as it opens, and nothing is uploaded.

Guides

Also for

TeachSlides · slides on camera, finished video

Download free