[libmath-prime-util-perl] 24/55: znorder arguments in PP code

Partha P. Mukherjee ppm-guest at moszumanska.debian.org
Thu May 21 18:53:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

ppm-guest pushed a commit to annotated tag v0.41
in repository libmath-prime-util-perl.

commit e9c427367ba5d70d0b5b197e775c716f0237594f
Author: Dana Jacobsen <dana at acm.org>
Date:   Sun May 4 17:14:25 2014 -0700

    znorder arguments in PP code
---
 lib/Math/Prime/Util/PP.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Math/Prime/Util/PP.pm b/lib/Math/Prime/Util/PP.pm
index 08966c1..138ca09 100644
--- a/lib/Math/Prime/Util/PP.pm
+++ b/lib/Math/Prime/Util/PP.pm
@@ -2245,7 +2245,7 @@ sub is_aks_prime {
   while ($r < $n) {
     return 0 if !($n % $r);
     #return 1 if $r >= $sqrtn;
-    last if znorder($r, $n) > $limit;
+    last if znorder($n, $r) > $limit;  # Note the arguments!
     $r = next_prime($r);
   }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmath-prime-util-perl.git



More information about the Pkg-perl-cvs-commits mailing list