TITLE: Decomposing an integer into primes raised to different powers
QUESTION [5 upvotes]: The number $711000000$ can be written as $79^1 \times 2^6 \times 3^2 \times 5^6$. How are these numbers found? 
I guess the more general question is - given $n \in \mathbb Z $, how can you 'decompose' it into the product of primes raised to different powers?

REPLY [4 votes]: They are found by reversing the process that was used to come up with the number in the first place: you divide to reverse the multiplications. Presumably you chose these primes and powers of primes and multiplied them together to get this number. So you just divide out the primes or powers of primes.
Of course in some cases this is easier said than done. If you choose just two prime numbers large enough, you can multiply them easily enough but for someone else to divide out the two primes can take too much time to be practical (a concept of great practical use in cryptography).
Most of the answers so far mention trial division, a simple, humble method that works pretty well when the prime factors are mostly small and consecutive. This is important to remember: if $n = p_1 p_2 \ldots p_{\Omega(n)}$ is a composite number such that $p_1 \leq p_2 \leq \ldots \leq p_{\Omega(n)}$ ($\Omega(n)$ is a function that counts how many prime factors $n$ has) then $p_1 \leq \sqrt{n}$. If you have tried dividing $n$ by every prime up to $\sqrt{n}$ and found no prime factor, then $n$ is itself prime.
As a couple of the previous answers have suggested, you don't have to go through the primes below $\sqrt{n}$ in order. In your example of 711000000 it might make more sense to divide out the 2's and 5's first and then 3. But be sure to keep track of how often you divide by each prime: 711000000 divided by 2 is 355500000, and that divided by 2 is 177750000, then 88875000, 44437500, 22218750, 11109375 (six divisions by 2, hence the first exponent 6 in $2^6 \times 3^2 \times 5^6 \times 79$. At this point I'd rather divide by 5 than by 3. Yada, yada, yada, 395 divided by 5 is 79, which is prime.
Even a seemingly daunting number like 738629049682427904000000 is very quickly taken care of with trial division. A number like 738629049687284810748997 takes way too long with trial division. Fermat's difference of two squares method might work better in this case. Or you might even need something more sophisticated like Pollard's $\rho$ method or Pollard's $p - 1$ method.