You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix several issues with the contextInteger.pl macro.
Several times in the file the variable `$self` is used where it is not
defined. So if the `$self->Error` method is actually called it results
in the error "can't call Error on an undefined value".
Also the wrong counts are used in the `randomPrime` method resulting in
unexpected behavior.
Finally, if the `$end` parameter to the `_getPrimesInRange` is prime,
then include it in the returned primes in the range. Thus, the
`randomPrime` method will potentially be the `$end` parameter. I.e.,
`randomPrime(1, 11)` could return 11.
This is to address the things discussed in #1296.
0 commit comments