in reply to Re: sum of counts
in thread sum of counts
Well, it is like finding prime numbers using:
Any questions? (Just kidding. I'll give a real answer in a minute if someone hasn't already beat me to it.)my $p= 0; while( 1 ) { print "$p\n" if (1x++$p) !~ /^(..+)\1+$/; }
I believe Abigail deserves credit for that regex, BTW.
- tye (but my friends call me "Tye")
|
|---|