Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4812225

Miscellaneous primality testing issues for BigInteger

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 5.0
    • 1.4.0
    • core-libs
    • None
    • tiger
    • sparc
    • solaris_7

      The method BigInteger.jacobiSymbol should be private and static.

      A superflous check is in the Jacobi code, "if (u < p)"
      This should be replaced iwth assert (u < p) because we believe by inspection that u will never be less than p at that point.

      The primality checking of BigIntegerTest.java should be strengthened.

            mmcclosksunw Michael Mccloskey (Inactive)
            mmcclosksunw Michael Mccloskey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: