On Fri, 13 Feb 2009 15:23:07 +0100, Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote: > 1. Factor m into primes. Obtain arrays p[], the prime factors, and w[], > their powers. For example, say m = 125, then p[] = [ 3, 5 ] and w[] = [ > 1, 2 ]. You meant for m = 75, right? Otherwise, p[] = [ 5 ] and w[] = [ 3 ]. -- Simen