Given a positive integer argument, this program will display all of its prime factors.
$;=pop;{$.= 0;map{$;%$_ or$.||=$_}2 ..sqrt$;;;+ $.||die$;-j .$/;warn$.. $/;$;/=$.;n until+redo}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Prime Time for an Obfuscation
by wulvrine (Friar) on Apr 16, 2007 at 12:24 UTC | |
Re: Prime Time for an Obfuscation
by Ray Smith (Beadle) on Apr 16, 2007 at 12:22 UTC | |
Re: Prime Time for an Obfuscation
by Anonymous Monk on Jul 29, 2007 at 23:49 UTC | |
by tye (Sage) on Jul 30, 2007 at 06:54 UTC |