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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • 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);
          }
      }
       

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: