Prime vs. Composite Numbers and Sieve of Eratosthenes
Every whole number greater than is built out of fundamental arithmetic building blocks called prime numbers. Understanding the distinction between prime and composite numbers allows us to simplify fractions, factor expressions, and find common multiples with ease.
In this lesson, you will learn the exact paper definitions of primes and composites, master the historic Sieve of Eratosthenes method, and learn how to test whether any two- or three-digit number is prime using the square root stopping rule.
1. Concepts & Paper Visuals
Exact Mathematical Definitions
Every positive integer falls into one of three distinct categories:
The Number 1 (The Unit):
- has exactly one positive divisor: itself ().
- Therefore, is neither prime nor composite.
Prime Numbers:
- A whole number strictly greater than that has exactly two distinct positive divisors: and itself.
- First few primes:
Composite Numbers:
- A whole number strictly greater than that has more than two positive divisors.
- A composite number can always be broken down into a product of smaller whole numbers greater than .
- First few composites:
Why is 2 Unique?
is the very first prime number and the only even prime number.
Every other even number ends in or , which means it is divisible by . Since an even number (for ) has at least three divisors ( and ), all even numbers greater than are composite.
The Sieve of Eratosthenes on Paper
Invented over years ago by the Greek mathematician Eratosthenes of Cyrene, this systematic paper method filters out composite numbers by crossing out multiples, leaving only the pure primes.
Here is how the Sieve works for numbers from to :
Step-by-Step Paper Sieve Rules:
- Cross out 1: is not prime.
- Circle 2: is prime. Cross out all remaining multiples of ().
- Circle 3: is prime. Cross out all remaining multiples of (). (Note: multiples like are already crossed out by ).
- Circle 5: is prime. Cross out all remaining multiples of ending in ().
- Circle 7: is prime. Cross out all remaining multiples of ().
- Stop! All remaining uncrossed numbers are prime!
The prime numbers up to are:
2. The Square Root Stopping Rule
How do we test whether a single large number is prime without checking every integer up to ?
The Square Root Principle: If a whole number is composite, it must have at least one prime factor such that:
Why Does This Work?
If , both factors cannot be greater than . If both were greater than , their product would exceed :
Therefore, at least one factor must be less than or equal to . If you test all prime numbers up to and none divide , then is guaranteed to be prime!
3. Step-by-Step Notebook Examples
Example 1: Testing if 97 is Prime
Problem: Test whether is a prime or composite number on paper.
- Step 1: Estimate :Since , we know:
- Step 2: List all primes :
The primes to test are only:
- Step 3: Test divisibility on paper:
- Test 2: is odd NOT divisible by .
- Test 3: Digit sum . Since NOT divisible by .
- Test 5: Last digit is (not or ) NOT divisible by .
- Test 7: Paper division: (since ) NOT divisible by .
- Conclusion: None of the primes up to divide .
- Final Answer: is a prime number.
Example 2: Testing the Infamous "Exam Traps" (91 and 51)
Problem: Classify and as prime or composite.
Testing :
- Check digit sum: .
- Since is divisible by , is divisible by :
- Divisors of : (four divisors).
- is a composite number.
Testing :
- , so test primes :
- : is odd (No).
- : , not divisible by (No).
- : Ends in (No).
- : Test short division on paper:
- Since , has divisors .
- is a composite number.
Example 3: Testing a Three-Digit Number (173)
Problem: Determine whether is prime.
- Step 1: Estimate :Since , we have .
- Step 2: List primes :
- Step 3: Test each prime:
- : Odd No.
- : , not divisible by No.
- : Ends in No.
- : (since ) No.
- : Alternating sum , not divisible by () No.
- : (since ) No.
- Conclusion: is not divisible by any prime up to .
- Final Answer: is a prime number.
4. Common Mistakes & Paper Traps
[!WARNING] Trap 1: Classifying 1 as a prime number. This is the single most common error in school mathematics. By definition, a prime number must have exactly two distinct positive divisors. The number only has one divisor (), so it cannot be prime.
[!WARNING] Trap 2: Assuming all odd numbers are prime. While all primes except are odd, the converse is false. Many odd numbers are composite:
[!WARNING] Trap 3: Testing composite numbers during prime tests. When testing if is prime, students often waste time dividing by .
- If is not divisible by , it cannot be divisible by .
- If is not divisible by , it cannot be divisible by .
- Only test prime divisors:
5. Pencil & Paper Practice
Classify each number as Prime, Composite, or Neither using pencil and paper:
- Practice 1:
- Practice 2:
- Practice 3:
6. Worked Solutions for Practice Problems
Solution to Practice 1
- Divisors of : only .
- A prime requires exactly two distinct divisors.
- is NEITHER prime nor composite.
Solution to Practice 2
- Number: .
- Test divisibility by : sum of digits is .
- Since divides by , divides by :
- is COMPOSITE.
Solution to Practice 3
- Number: .
- (). Primes : .
- Divisible by ? No (odd).
- Divisible by ? Sum (No).
- Divisible by ? Ends in (No).
- Divisible by ? () (No).
- Tested all primes with none dividing evenly.
- is PRIME.
7. Summary
- Prime: Exactly two distinct positive divisors ( and itself).
- Composite: More than two positive divisors (can be factored into smaller primes).
- is neither prime nor composite.
- is the smallest and only even prime.
- Square Root Rule: To test if is prime, test only prime divisors . If none divide , is prime.
Test yourself
Why is the number NOT classified as a prime number?
- Because it is an odd number
- Because a prime number must have exactly two distinct positive divisors, but has only one divisor
- Because it can be divided by any whole number
- Because it is smaller than
Which of the following numbers is COMPOSITE?
To determine whether is prime on paper, what is the largest prime divisor you need to test?