I have large integers that can only be factored into 2, 3 and 5, which are known as 5-smooth numbers. Since they are extremely large, I want to represent each such number as a triplet of exponents; for example, $360 = 2^33^25$ will be represented as $(3,2,1)$.
My question is: given 2 such triplets, how to compare them to determine which one is larger? If this is difficult to do, are there other ways to compare extremely large 5-smooth numbers?
Compare the logarithm of their ratio:
$$\log \left( \dfrac{2^{a_1}3^{b_1}5^{c_1}}{2^{a_2}3^{b_2}5^{c_2}} \right) = (a_1-a_2) * \log 2 + (b_1-b_2) * \log 3 + (c_1-c_2) * \log 5 $$
So if you keep the values of the three logarithms around, you can just subtract the triples, take their weighted sum, and check if the final value is greater than or less than zero.
Also note that it doesn't matter what base you use for the logarithms, so you might as well use $\log_2$, as it eliminates one multiplication. And @RobertIsrael has given you some pointers in the comments on how you might want to "implement" the other two logs.