in reply to Divisors for a number
What could be helpful for you is the modulus operator as explained in http://perldoc.perl.org/5.8.9/perlop.html#Multiplicative-Operators. $n % $p equals zero if $p is a divisor of $n.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Divisors for a number
by hdb (Monsignor) on Mar 03, 2015 at 15:08 UTC | |
by Athanasius (Archbishop) on Mar 03, 2015 at 15:52 UTC | |
by LanX (Saint) on Mar 03, 2015 at 15:54 UTC |