Any integer n can be written in the form
$ n = p_1^{k_1}p_2^{k_2} ... p_r^{k_r} $,
where the powers $ k_1, k_2, ...,k_r $ are integers and $ p_1, p_2, ..., p_r$ are primes.
Now I am interested in whether there are quicker methods for finding the powers, other than trial and error? For example, if I wanted to write a large number such as 567 788 in the above form, and it looked something like this:
$567 788 = p_1^{k_1}p_2^{k_2}p_3^{k_3} $
what methods could could be applied, to determine the relevant prime factors $ p$, and by what power $k$ to raise each prime $p$?