good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: prime factorization using base 1by ambrus (Abbot) |
on Dec 16, 2010 at 10:18 UTC ( [id://877463]=note: print w/replies, xml ) | Need Help?? |
Some later nodes that refer to this trick are Re: Simple primality testing, Re^2: The Oldest Plays the Piano, Re: Calculate prime factors for a given number in a perl one-liner, Re: is it prime?. Update 2015-10-22: See also "How does this regular expression work?" (2010-07) question on StackOverflow which asks about a similar regex in the article "A regular expression to check for prime numbers" (2007-03) by Avinash Meetoo
In Section
Cool Uses for Perl
|
|