[libmath-prime-util-perl] 173/181: Pari's nth prime doesn't want 0

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


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

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

commit 67f971f8bc54df9638527d039cb5d2b45ea2a58f
Author: Dana Jacobsen <dana at acm.org>
Date:   Mon Jan 13 09:40:42 2014 -0800

    Pari's nth prime doesn't want 0
---
 Changes            | 4 ++--
 xt/pari-compare.pl | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Changes b/Changes
index d1b324f..4644b4d 100644
--- a/Changes
+++ b/Changes
@@ -169,8 +169,8 @@ Revision history for Perl module Math::Prime::Util
 
     [ADDED]
 
-    - is_proven_prime
-    - is_proven_prime_with_cert
+    - is_provable_prime
+    - is_provable_prime_with_cert
     - carmichael_lambda
     - znorder
     - prime_iterator_object
diff --git a/xt/pari-compare.pl b/xt/pari-compare.pl
index 63e1035..a7d83af 100755
--- a/xt/pari-compare.pl
+++ b/xt/pari-compare.pl
@@ -63,7 +63,7 @@ while (1) {
 
 }
 
-{ my $n = int(rand(10**5));
+{ my $n = 1+int(rand(10**5));  # Pari doesn't like 0
   die "nth_prime($n)" unless Math::Pari::prime($n) == nth_prime($n);
 }
 

-- 
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