Divide the number given with the smallest prime numbers and continue the process until you end up with 1.