Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Nested loopsby danaj (Friar) |
on Sep 16, 2015 at 02:58 UTC ( [id://1142158]=note: print w/replies, xml ) | Need Help?? |
Seems much easier than all the looping or recursion. The gcd will return 1 if the two inputs have no common factors -- if it isn't divisible by 13, 17, or 19 in this example.
In Section
Seekers of Perl Wisdom
|
|