Prime and composite numbers worksheet
A prime number is a whole number greater than 1 whose only factors are 1 and itself, such as 2, 3, 5, 7, 11 and 13. A composite number has more than two factors, so it can be written as a product of two smaller whole numbers: 15 = 3 × 5. The numbers 0 and 1 are neither prime nor composite. 2 is the only even prime, because every other even number has 2 as a factor. To test a number, try the primes up to its square root; if none of them divides it, it is prime.
Not quite the one you need? Same words, different skill:
- Prime Factorization (Pre-Algebra). Break a number, or a monomial, into primes.
- Divisibility Rules (Pre-Algebra). Divide without dividing.
- Greatest Common Factor (Pre-Algebra). The biggest number that divides them all.
Select your difficulty
Pick more than one for a sheet that mixes them.
The preview can look cramped on a phone. The PDF and printed sheet come out normal.
Free math worksheets at sigmaprep.io/worksheets© 2026 Sigma Prep
Sigma Prep · sigmaprep.io/worksheets Name Prime and Composite Numbers Date Period Follow the heading above each group.
Free math worksheets at sigmaprep.io/worksheets© 2026 Sigma Prep |
Sigma Prep · sigmaprep.io/worksheets Name Prime and Composite NumbersAnswer keyVersion 1 Date Period Follow the heading above each group.
Free math worksheets at sigmaprep.io/worksheets© 2026 Sigma Prep |
How to do these
Is prime or composite? Give a reason.
- It is odd, so 2 is not a factor.
- Its digits add up to 5 + 7 = 12, which is divisible by 3, so 3 is a factor.
- 57 = 3 × 19, so 57 has factors other than 1 and 57.
The answer is Composite: .
Where students go wrong
Calling every odd number prime. 9, 21, 51 and 91 are all odd, but 9 = 3 × 3, 21 = 3 × 7, 51 = 3 × 17 and 91 = 7 × 13.
Also called prime or composite, prime and composite, prime numbers, identifying prime and composite numbers or sieve of eratosthenes.
What you can put on this worksheet
- Prime or composite, and why (easy); divisibility tests (medium); true or false (hard)
- The dots are arranged in 4 equal rows of 10. Is the number of dots prime or composite? Explain using the array. → Composite: there are 4 × 10 = 40 dots, so 40 has the factors 4 and 10 as well as 1 and 40.
- Factors and factor pairs (easy); the Sieve of Eratosthenes (medium); the largest or smallest prime (hard)
- List the factors of 38 and of 47. Which of the two numbers is prime? → 38: 1, 2, 19, 38; 47: 1, 47; 47 is prime
- Primes in a range (easy); twin primes (medium); word problems (hard)
- What is the first prime number after 51? → 53 (52 is composite)
- Sorting numbers, with 0 and 1 (easy); even and odd numbers (medium); mistakes to explain (hard)
- Sort these numbers into prime, composite and neither: 47, 45, 1, 0, 34, 3 → Prime: 3, 47; composite: 34, 45; neither: 0, 1 (0 and 1 are neither prime nor composite)