There's more than one way to do things | |
PerlMonks |
Re^2: Unable to Understand grep and hash use for prime no.by 1nickt (Canon) |
on Aug 04, 2015 at 15:21 UTC ( [id://1137391]=note: print w/replies, xml ) | Need Help?? |
The OP does not use grep and hashes to calculate prime numbers. It uses a subroutine called is_prime(), which is not included in the posted code. Could you post your version, so we can learn from it?
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|