Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testIsPrimeOnUniformRandom (0.13 sec)

  1. guava-tests/test/com/google/common/math/LongMathTest.java

        for (long l : POSITIVE_LONG_CANDIDATES) {
          assertEquals(BigInteger.valueOf(l).isProbablePrime(100), LongMath.isPrime(l));
        }
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrimeOnUniformRandom() {
        Random rand = new Random(1);
        for (int bits = 10; bits < 63; bits++) {
          for (int i = 0; i < 2000; i++) {
            // A random long between 0 and Long.MAX_VALUE, inclusive.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top