Question 471386
An algorithm that always works is to repeatedly divide 24 by 3, to count the number of 3's in the factorization. For example,


24/3 = 8


8/3 = 2 (exclude remainders)


2/3 = 0


There are 8+2+0 = 10 factors of 3.