@Sammm I have jolted down the code in my previous post... Have a look.. it works on the GCD basis..
On Dec 26, 11:43 pm, SAMMM <somnath.nit...@gmail.com> wrote: > Continued:-- > > Sry , I misunderstood the problm I thought it to be the power of Prime > factor ... > > For finding the required answer of N can be done N = a^p b^q .... > Need to find the hcf of (p,q,...) > 1 then the number can be > expressed as m^n .. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.