You stop breaking down a factor once it is prime because prime numbers only have two factors, 1 and the number itself, meaning they cannot be broken down further into smaller positive integers.
Conditions: The current branch value is prime.; The goal is to express the original number as a product of primes only.