in reply to Factoring Decimal Digits

You supply the computer that breaks the theoretical limititations of physics, and I'll supply the code ;-)
  
sub f { (1x(my$n=$_[0]))=~/(1+)\1+$/;my$p=$+[1];$p>1?(f($n/$p),f($p)):$n }
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Replies are listed 'Best First'.
Re^2: Factoring Decimal Digits
by Anonymous Monk on Feb 18, 2005 at 21:57 UTC
    This code produces the wrong answer for 366178. It gives the prime factors for 366180.
Re: (MeowChow - let's split the cash) Re: Factoring Decimal Digits
by Yossi (Initiate) on Jul 26, 2001 at 03:46 UTC
    i have only PII350Mhz with 128 RAM... i just want the code for fun... (and to crush my computer down...)
      Ah, well then, I don't know if my code helps with the former, but for the latter, I heartily recommend one of these.
         MeowChow                                   
                     s aamecha.s a..a\u$&owag.print