To perform prime factorization or to find factors of any number say 15.
- Enter ifactor(15) then press Enter.
- Answer 3 * 5 will be displayed.
15 is divisible by 3: 15 = 5 * 3.
ifactors decomposes the integer (or the integers of the list) into prime factors,but the result is given as a list (or a list of lists) in which each prime factor is followed by its multiplicity.
- Enter ifactors(15) then press Enter.
- Answer[3,1,5,1] will be displayed.