[Mono-bugs] [Bug 51229][Nor] New - PrimalityTests.SmallPrimeSppTest doesn't work...
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 20 Nov 2003 13:43:11 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by pieter@mentalis.org.
http://bugzilla.ximian.com/show_bug.cgi?id=51229
--- shadow/51229 2003-11-20 13:43:11.000000000 -0500
+++ shadow/51229.tmp.29279 2003-11-20 13:43:11.000000000 -0500
@@ -0,0 +1,27 @@
+Bug#: 51229
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: pieter@mentalis.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: PrimalityTests.SmallPrimeSppTest doesn't work...
+
+The SmallPrimeSppTest method in the Mono.Math.Prime.PrimalityTests class
+doesn't work properly. It returns false even though I know the number in
+question is a prime number. SmallPrimeSppTest is the method that is used
+in BigInteger.isProbablePrime, so this method won't work either.
+
+I used the three large primes described in RFC2412
+[http://www.faqs.org/rfcs/rfc2412.html] appendix E. When I use the
+RabinMillerTest to test the primality of these primes, it returns true --
+as expected.