Closed trizen closed 7 years ago
Hi,
There seems to be a minor issue in Math::Prime::Util::GMP::divisors(n) when n=1:
Math::Prime::Util::GMP::divisors(n)
n=1
use 5.014; use Math::Prime::Util::GMP qw(divisors); say for divisors(1);
Output:
[1] 17417 segmentation fault (core dumped) perl x.pl
Segmentation faults are not good at all. One line fix in b02d89a plus a test.
Fix confirmed. Thank you for taking the time in fixing it. :+1:
Hi,
There seems to be a minor issue in
Math::Prime::Util::GMP::divisors(n)
whenn=1
:Output: