Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Here is a prime number verifier that Abigail presented at
his talk entitled
"JAPHs and Other Obscure Signatures" at YAPC 19100.
Very clever, very short, but I can't say much for the performance:
This takes a number as a parameter, and checks to see whether it's prime or not. I modified it a bit to stuff @_ with primes, and got this:
I think that's shorter, no? As I said, I can't claim credit for this! But it's definitely worth noting. There's an explanation of how it works on his talk web site. Alan In reply to RE: sieve of erothenes
by ferrency
|
|