DoingMaths - Free maths worksheets
  • Home
  • Algebra
    • Algebraic expressions
    • Algebraic equations
    • Expanding brackets
    • Index notation
    • Inequalities
    • Quadratic equations
    • Sequences
    • Simultaneous equations
    • Straight line graphs
    • Substitution
  • Shapes, space and measures
    • Angles
    • Circles
    • Circle theorems
    • Compound measures
    • Construction
    • Distance/speed-time graphs
    • Length, area and volume
    • Metric and Imperial conversions
    • Metric units of measurement
    • Proof
    • Pythagoras' Theorem
    • Scale factors, similarity and congruence
    • Symmetry and reflection
    • Time
    • Trigonometry
  • Number
    • Primary Addition and Subtraction
    • Addition and subtraction
    • Basic number work
    • BODMAS/PEMDAS/BIDMAS
    • Compound percentage change
    • Decimals
    • Factors and Multiples
    • Fractions
    • Fractions, decimals and percentages
    • Money
    • Multiplication and division
    • Percentages
    • Ratio and Proportion
    • Rounding and estimating
    • Standard form
  • Statistics and Probability
    • Averages and the Range
    • Box plots
    • Collecting data
    • Pie charts
    • Probability
  • More
    • Starters >
      • Puzzles and riddles
      • Maths Wordsearches
      • More Maths Lesson Starter Ideas
    • Christmas Maths Activities
    • Maths Articles >
      • Revision and How-To Guides >
        • How do Scale Factors Work for Area and Volume?
        • Edexcel GCSE Maths 2023 Paper 2: The Final Question
        • How to Find the Average From a Frequency Table
        • What Do the Angles in a Polygon Add Up To?
        • How to Integrate by Parts: Calculus Help
        • How to Use Pythagoras' Theorem
        • How to Calculate Compound Percentage Changes
        • How to Find Equivalent Fractions
        • How to Find the Averages and Range From Grouped Data
        • How to Factorise a Quadratic Algebraic Equation
        • How to Expand a Pair of Brackets
        • How to Complete the Square
        • How to Find the Average of a Group of Numbers
        • Hannah's Sweets - Tricky GCSE Question
        • Why Do We Rationalise the Denominator?
        • How to Add, Subtract, Multiply and Divide Fractions
        • How to Answer the 'Impossible' Question on the Edexcel GCSE Maths Paper 2022
        • How to Draw Pie Charts
        • How to Differentiate From First Principles
        • How to Solve Direct Proportion Questions
        • How to Calculate a Percentage of an Amount Using a Decimal Multiplier
        • How to Find the Lowest Common Multiple and Highest Common Factor of Two Numbers
        • How to Write a Number as a Product of Its Prime Factors
        • How to Solve a Quadratic Equation: 3 Methods
        • How To Solve the GCSE Maths Question That's Leaving Parents Stumped
        • How to Multiply Decimal Numbers Without a Calculator
      • How Many Gifts Do I Get Over the Twelve Days of Christmas?
      • How to Find the Sum of a Geometric Sequence
      • The Maths Behind A4 Paper
      • The Monty Hall Problem
      • Rationalizing the Denominator
      • How Do Binary Numbers Work?
      • Rice on a Chessboard
      • How to Prove Pi Equals 2
      • What is the Maximum Score in Ten-Pin Bowling?
      • The Prisoner's Dilemma
      • How Many Socks Make a Pair?
      • Four Interesting Types of Mathematical Numbers
      • How to Add the Numbers 1-100 Quickly
      • What Is the Sum of the Sequence 1, 1/2, 1/4, 1/8, 1/16, ...?
      • Find the Answer to 8×9×10×11×12 Without Using a Calculator
      • How to Prove that the Square root of 2 is Irrational
      • Three Interesting Fractals From Koch, Sierpinski and Cantor
      • How Many Squares Are on a Chessboard?
      • Different Kinds of Prime Numbers
      • How to Do Long Multiplication Using Napier's Method
      • The Handshake Problem
      • Why You Should Always Order the Large Pizza
      • Maximizing the Area of a Rectangle
      • Speed Arithmetic - How to Multiply by 11 Without a Calculator
      • Speed Arithmetic - How to Multiply and Divide by 5 Without a Calculator
      • Pythagoras' Theorem - A Proof
      • How Large Is Infinity?
      • Interesting Facts About Pascal's Triangle
      • Why Does Time Slow Down as You Approach the Speed of Light?
      • Five of History's Most Influential Women in STEM
      • Five More of History's Most Influential Women in STEM
      • How Likely Are You to Hit the Centre of the Archery Target?
      • Find Four Primes Smaller Than 100 Which Are Factors Of 3^32 − 2^32
      • Bertrand's Paradox: A Problem in Probability Theory
      • What Is an Erdős Number?
      • Three of Isaac Newton's Most Important Contributions to the World
      • Mathematical Numbers: What Is 'e'?
      • Hilbert's Paradox of the Grand Hotel: Another Look at Infinity
      • Decreasing the Circumference of Differently Sized Circles: A Counterintuitive Cricket Problem
      • Zeno's Paradox: Achilles and the Tortoise
      • What Are Hexadecimal Numbers?
      • Why Do We Split a Circle Into 360 Degrees?
      • N-bonacci Sequences - Taking Fibonacci Further
      • Being Careful When You Average an Average: A Basketball Problem
      • What Is a Dudeney Number?
      • Every Prime Number Larger Than 3 Is 1 Away From a Multiple of 6: A Proof
      • Why Do Buses Come in Threes?
      • A Quick Way to Solve 1000^2 − 999^2: The Difference of Two Squares
      • What Are Triangular Numbers?
      • What Is the Collatz Conjecture?
      • How to Make a Mathematical Paper Snowflake
      • What Is the Unexpected Hanging Paradox?
      • What Is Pi?
      • Is There a Biggest Prime Number or Do They Continue Infinitely?
    • A-Level Maths Paper Walkthroughs >
      • A-Level Maths, Edexcel, June 2018, Paper Walkthroughs >
        • A-Level Maths, June 2018, Pure Paper 1 Question Walkthroughs
        • A-Level Maths, June 2018, Pure Paper 2, Question Walkthroughs
        • A-Level Maths, June 2018, Statistics and Mechanics, Question Walkthroughs
      • A-Level Maths, Edexcel, June 2019, Paper Walkthroughs >
        • A-Level Maths, June 2019, Pure Paper 1, Question Walkthroughs
        • A-Level Maths, June 2019, Pure Paper 2, Question Walkthrough
        • A-Level Maths, June 2019, Statistics and Mechanics, Walkthrough answers
      • A-Level Maths, Edexcel, October 2020, Paper Walkthroughs >
        • A-Level Maths, October 2020, Pure Mathematics Paper 1, Question Walkthroughs
        • A-Level Maths, October 2020, Pure Mathematics Paper 2, Question Walkthroughs
        • A-Level Maths, October 2020, Statistics and Mechanics, Walkthrough answers
      • A-Level Maths, Edexcel, October 2021, Paper Walkthroughs >
        • A-Level Maths, October 2021, Pure Mathematics, Paper 1 Walkthroughs
        • A-Level Maths, October 2021, Pure Mathematics Paper 2 Walkthroughs
        • A-Level Maths, October 2021, Statistics and Mechanics, Walkthrough answers
      • A-Level Maths, Edexcel, June 2022, Paper 1 Walkthroughs
    • Mathematician of the Month
    • Tricky Geometry Problems
    • DoingMaths video channel
    • DoingMaths Shop
    • Contact us
    • Privacy policy

How to Write a Number as a Product of Its Prime Factors

What Are Prime Numbers?​

Before we can look at prime factors, we must first examine what a prime number is.
Prime numbers are defined as any number with exactly two factors (numbers which the original number will divide into perfectly with no remainder).
The number 2 is a prime number, as it has only two factors, 1 and 2. 5 is also a prime number, as it has exactly two factors, 1 and 5. In fact, for any prime number, its two factors must be 1 and itself.
On the other hand, the number 6 is not a prime number, as it can be divided by 1, 2, 3 and 6 for a total of four factors. 1 is also not prime, as it has only one factor: itself.

What are Prime Factors?​

As the name suggests, the prime factors of a number are the factors of a number which are also prime. For example, the number 20 has six factors; 1, 2, 4, 5, 10 and 20. Of these factors, 2 and 5 are the only prime numbers; hence we call these the prime factors of 20.
When writing a number as a product of its prime factors, we want to rewrite the number as the multiplication of its prime factors which will get us back to this number. For example 20 = 2 × 2 × 5. We have three numbers, all of which are prime, which multiply together to make 20.
A factor tree of 30
A factor tree of 30

Using a Factor Tree for Prime Factorisation

When numbers have multiple factors, it can be tricky to find all of the prime factors. Furthermore, many numbers have repeated prime factors, such as in the previous example, where we saw that we used 2 twice to get 20. These can be especially difficult to spot.
One way to make sure that we find every prime factor needed is to use a prime factor tree. This works by taking our original number and breaking it down into a pair of factors that multiply together to give the original number.
If either of these factors is prime, we leave it there. If either number can be broken down again, we do so. We keep repeating this until we can go no further, at which point we will have every prime factor.

Example: Write 140 as the Product of Its Prime Factors

The first step is to find two numbers that multiply together to make 140. There are multiple pairs that will do this, e.g., 2 × 70, 4 × 35, 5 × 28, etc., but it doesn't matter which one we choose. We will find out more about the reason why later on.
In this example, let's start with 10 × 14. To write this, we start with 140 at the top and have two branches coming down to our two factors, as in the picture below.
Prime factorisation tree for 140 - step one.
Prime factorisation tree for 140 - step one

Continuing the Prime Factorisation of 140

Now that we have our first pair of factors, we look at each factor in turn and split them up further if we can.
On the left, we have 10. This is equal to 2 × 5, so we split this along two branches to the 2 and 5. On the right, we have 14, which is equal to 2 × 7, and so we split this accordingly. The four factors which we have now are all prime, so we circle them to denote this and cannot split any further.
Prime factorisation tree for 140 - step two
Prime factorisation tree for 140 - step two

Writing the Prime Factors as a Product

Our prime factor tree for 140 has four branch ends where we have a prime number and hence cannot split the factors any further. These are 2, 5, 2 and 7. Remembering that each pairing multiplies to make the number above, we can see that 140 must equal the product of these four prime numbers.
So we have 140 = 2 × 2 × 5 × 7 = 2^2 × 5 × 7

Can We Get Different Prime Factors?

Thinking back to our original split of the number 140, we had several options for pairs of factors. It might be tempting to think that if we had chosen a different starting pair, we would then end up with a different answer, but this isn't the case.
Look at the image below. In this case we start with 20 × 7. We circle 7 as this is prime, but continue to split 20. When we complete the tree we end up with the same four prime numbers as before; 2, 2, 5 and 7.
Prime factorisation tree for 140 - different starting pair
Prime factorisation tree for 140 - different starting pair

Unique Factorisation: The Fundamental Theorem of Arithmetic

In fact, it doesn't matter which order we choose to split up 140 or any other number into pairs of factors; we will always end up with the same prime factors at the end.
This is formally known as the Fundamental Theorem of Arithmetic which states that every integer larger than 1 can be written as a unique product of prime factors.
For example, 140 = 2^2 × 5 × 7 as we have already seen and cannot be written as a combination of any other primes.
1100 = 2^2 × 5^2 × 11 and again cannot be written as a product of any different primes or using different powers.

Comments

How's your multiples and factors revision going?
​Don't forget to leave your comments below.
Home      Algebra      Shapes, space and measures      Number      Data handling      Starters      Internet articles      DoingMaths Youtube channel
© Copyright DoingMaths free worksheets 2026 - All Rights Reserved
  • Home
  • Algebra
    • Algebraic expressions
    • Algebraic equations
    • Expanding brackets
    • Index notation
    • Inequalities
    • Quadratic equations
    • Sequences
    • Simultaneous equations
    • Straight line graphs
    • Substitution
  • Shapes, space and measures
    • Angles
    • Circles
    • Circle theorems
    • Compound measures
    • Construction
    • Distance/speed-time graphs
    • Length, area and volume
    • Metric and Imperial conversions
    • Metric units of measurement
    • Proof
    • Pythagoras' Theorem
    • Scale factors, similarity and congruence
    • Symmetry and reflection
    • Time
    • Trigonometry
  • Number
    • Primary Addition and Subtraction
    • Addition and subtraction
    • Basic number work
    • BODMAS/PEMDAS/BIDMAS
    • Compound percentage change
    • Decimals
    • Factors and Multiples
    • Fractions
    • Fractions, decimals and percentages
    • Money
    • Multiplication and division
    • Percentages
    • Ratio and Proportion
    • Rounding and estimating
    • Standard form
  • Statistics and Probability
    • Averages and the Range
    • Box plots
    • Collecting data
    • Pie charts
    • Probability
  • More
    • Starters >
      • Puzzles and riddles
      • Maths Wordsearches
      • More Maths Lesson Starter Ideas
    • Christmas Maths Activities
    • Maths Articles >
      • Revision and How-To Guides >
        • How do Scale Factors Work for Area and Volume?
        • Edexcel GCSE Maths 2023 Paper 2: The Final Question
        • How to Find the Average From a Frequency Table
        • What Do the Angles in a Polygon Add Up To?
        • How to Integrate by Parts: Calculus Help
        • How to Use Pythagoras' Theorem
        • How to Calculate Compound Percentage Changes
        • How to Find Equivalent Fractions
        • How to Find the Averages and Range From Grouped Data
        • How to Factorise a Quadratic Algebraic Equation
        • How to Expand a Pair of Brackets
        • How to Complete the Square
        • How to Find the Average of a Group of Numbers
        • Hannah's Sweets - Tricky GCSE Question
        • Why Do We Rationalise the Denominator?
        • How to Add, Subtract, Multiply and Divide Fractions
        • How to Answer the 'Impossible' Question on the Edexcel GCSE Maths Paper 2022
        • How to Draw Pie Charts
        • How to Differentiate From First Principles
        • How to Solve Direct Proportion Questions
        • How to Calculate a Percentage of an Amount Using a Decimal Multiplier
        • How to Find the Lowest Common Multiple and Highest Common Factor of Two Numbers
        • How to Write a Number as a Product of Its Prime Factors
        • How to Solve a Quadratic Equation: 3 Methods
        • How To Solve the GCSE Maths Question That's Leaving Parents Stumped
        • How to Multiply Decimal Numbers Without a Calculator
      • How Many Gifts Do I Get Over the Twelve Days of Christmas?
      • How to Find the Sum of a Geometric Sequence
      • The Maths Behind A4 Paper
      • The Monty Hall Problem
      • Rationalizing the Denominator
      • How Do Binary Numbers Work?
      • Rice on a Chessboard
      • How to Prove Pi Equals 2
      • What is the Maximum Score in Ten-Pin Bowling?
      • The Prisoner's Dilemma
      • How Many Socks Make a Pair?
      • Four Interesting Types of Mathematical Numbers
      • How to Add the Numbers 1-100 Quickly
      • What Is the Sum of the Sequence 1, 1/2, 1/4, 1/8, 1/16, ...?
      • Find the Answer to 8×9×10×11×12 Without Using a Calculator
      • How to Prove that the Square root of 2 is Irrational
      • Three Interesting Fractals From Koch, Sierpinski and Cantor
      • How Many Squares Are on a Chessboard?
      • Different Kinds of Prime Numbers
      • How to Do Long Multiplication Using Napier's Method
      • The Handshake Problem
      • Why You Should Always Order the Large Pizza
      • Maximizing the Area of a Rectangle
      • Speed Arithmetic - How to Multiply by 11 Without a Calculator
      • Speed Arithmetic - How to Multiply and Divide by 5 Without a Calculator
      • Pythagoras' Theorem - A Proof
      • How Large Is Infinity?
      • Interesting Facts About Pascal's Triangle
      • Why Does Time Slow Down as You Approach the Speed of Light?
      • Five of History's Most Influential Women in STEM
      • Five More of History's Most Influential Women in STEM
      • How Likely Are You to Hit the Centre of the Archery Target?
      • Find Four Primes Smaller Than 100 Which Are Factors Of 3^32 − 2^32
      • Bertrand's Paradox: A Problem in Probability Theory
      • What Is an Erdős Number?
      • Three of Isaac Newton's Most Important Contributions to the World
      • Mathematical Numbers: What Is 'e'?
      • Hilbert's Paradox of the Grand Hotel: Another Look at Infinity
      • Decreasing the Circumference of Differently Sized Circles: A Counterintuitive Cricket Problem
      • Zeno's Paradox: Achilles and the Tortoise
      • What Are Hexadecimal Numbers?
      • Why Do We Split a Circle Into 360 Degrees?
      • N-bonacci Sequences - Taking Fibonacci Further
      • Being Careful When You Average an Average: A Basketball Problem
      • What Is a Dudeney Number?
      • Every Prime Number Larger Than 3 Is 1 Away From a Multiple of 6: A Proof
      • Why Do Buses Come in Threes?
      • A Quick Way to Solve 1000^2 − 999^2: The Difference of Two Squares
      • What Are Triangular Numbers?
      • What Is the Collatz Conjecture?
      • How to Make a Mathematical Paper Snowflake
      • What Is the Unexpected Hanging Paradox?
      • What Is Pi?
      • Is There a Biggest Prime Number or Do They Continue Infinitely?
    • A-Level Maths Paper Walkthroughs >
      • A-Level Maths, Edexcel, June 2018, Paper Walkthroughs >
        • A-Level Maths, June 2018, Pure Paper 1 Question Walkthroughs
        • A-Level Maths, June 2018, Pure Paper 2, Question Walkthroughs
        • A-Level Maths, June 2018, Statistics and Mechanics, Question Walkthroughs
      • A-Level Maths, Edexcel, June 2019, Paper Walkthroughs >
        • A-Level Maths, June 2019, Pure Paper 1, Question Walkthroughs
        • A-Level Maths, June 2019, Pure Paper 2, Question Walkthrough
        • A-Level Maths, June 2019, Statistics and Mechanics, Walkthrough answers
      • A-Level Maths, Edexcel, October 2020, Paper Walkthroughs >
        • A-Level Maths, October 2020, Pure Mathematics Paper 1, Question Walkthroughs
        • A-Level Maths, October 2020, Pure Mathematics Paper 2, Question Walkthroughs
        • A-Level Maths, October 2020, Statistics and Mechanics, Walkthrough answers
      • A-Level Maths, Edexcel, October 2021, Paper Walkthroughs >
        • A-Level Maths, October 2021, Pure Mathematics, Paper 1 Walkthroughs
        • A-Level Maths, October 2021, Pure Mathematics Paper 2 Walkthroughs
        • A-Level Maths, October 2021, Statistics and Mechanics, Walkthrough answers
      • A-Level Maths, Edexcel, June 2022, Paper 1 Walkthroughs
    • Mathematician of the Month
    • Tricky Geometry Problems
    • DoingMaths video channel
    • DoingMaths Shop
    • Contact us
    • Privacy policy