Introduction

Welcome back to Breaking Numbers Into Primes! This is the second of four lessons in the course, and your understanding of prime factorisation is already taking shape. In our previous lesson, we explored what prime factorisation means, confirmed that every number has a unique prime "fingerprint," and practised decomposing small numbers by inspection. Now we are ready for a visual, structured method called the factor tree that keeps our work organised as numbers grow larger. Let's jump in!

Why We Need a Systematic Approach
What Is a Factor Tree?
Building a Factor Tree: Example with 36
A Larger Example: 60
Different Starting Splits, Same Result
Practical Tips for Building Factor Trees
Conclusion and Next Steps

In this lesson, we learned how to use factor trees to break any composite number into its prime factors in an organised, visual way. The process is straightforward: pick a factor pair, split composite factors further, and stop when every branch ends at a prime. We also saw firsthand that different starting splits always lead to the same set of prime factors, so there is no wrong way to begin.

Up next, you will put those branching skills into practice! You will complete partial factor trees, build your own from scratch for various numbers, explore how different starting pairs converge on the same answer, and explain your reasoning step by step.

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal