java.math.BigInteger.probablePrime() hangs with bitLength=2

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.4.0
    • Component/s: core-libs
    • sparc
    • solaris_2.6



      Name: auR10023 Date: 07/21/2000



      java.math.BigInteger.probablePrime(int bitLength, Random rnd) hangs with bitLength=2.
      Here is the example:

      -------------test.java--------------

      import java.math.*;
      import java.util.*;

      public class test {
          public static void main(String [] args) {
              BigInteger bi = BigInteger.probablePrime(2, new Random(10));
              System.out.println(bi);
          }
      }
       

      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: