Miscellaneous primality testing issues for BigInteger

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 5.0
    • Affects Version/s: 1.4.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: