in reply to Number functions I have lying around

One small note on the tests for non-primes: any number divisible by 9 is also divisible by 3, so your test for divisibility by 9 will never be true.

Aaron B.
Available for small or large Perl jobs and *nix system administration; see my home node.

  • Comment on Re: Number functions I have lying around