Question: Decomposing powers

 I have a long list of integers looking like

   725  =  5^2 * 29

  1125 =  3^2 * 5^3

   2048 = 2^11

   4752 = 2^4 * 3^3 * 11

  For all of them I need to extract  base & exponents, namely

  for  725:   [5,2, 29,1]

   for 1125: [3,2, 5,3], etc

   "op" gets lost for integers like  2048, power of a single number.

 How to do this ?...  Thanks.

Please Wait...