Re: Writing prime factor decomposision in conventional form
- To: mathgroup at smc.vnet.net
- Subject: [mg65346] Re: Writing prime factor decomposision in conventional form
- From: mike_in_england2006 at yahoo.co.uk
- Date: Mon, 27 Mar 2006 06:56:22 -0500 (EST)
- References: <e05ri1$3ru$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hello Wolfgang I found the folllowing code at http://mathworld.wolfram.com/PrimeFactorization.html SetAttributes[FactorForm, Listable]; FactorForm[n_?NumberQ, opts___] := Times @@ (HoldForm[Power[##]] & @@@ \ FactorInteger[n, opts]) Seems to do what you want. Regards, Mike Dr. Wolfgang Hintze wrote: > How can I get a conventional form output for the prime number > decomposition, e.g. {{2,3},{5,1}} as 2^3 5 ? > > I have found some (rather cumbersome) method but it leaves the final > expression in "" when I put it into input format in order to transfer it > in simple text form to another application. > > I'm sure that there is a simple way to achieve the goal. > > Any idea is greatly appreciated. > > Regards, > Wolfgang