Find primes by trial division and use primes to create a prime factors tree. Suppose n has more than two prime factors. Say you want to find the prime factors of 100 using trial division.