Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for probablePrime (0.24 sec)

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

        for (int bits = 5; bits < 32; bits++) {
          for (int i = 0; i < 100; i++) {
            long p = BigInteger.probablePrime(bits, rand).longValue();
            long q = BigInteger.probablePrime(bits, rand).longValue();
            assertFalse(LongMath.isPrime(p * q));
          }
        }
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrimeThrowsOnNegative() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  2. misc/cgo/gmp/gmp.go

    	y.doinit()
    	a.doinit()
    	b.doinit()
    	C.mpz_gcdext(&d.i[0], &x.i[0], &y.i[0], &a.i[0], &b.i[0])
    }
    
    // ProbablyPrime performs n Miller-Rabin tests to check whether z is prime.
    // If it returns true, z is prime with probability 1 - 1/4^n.
    // If it returns false, z is not prime.
    func (z *Int) ProbablyPrime(n int) bool {
    	z.doinit()
    	return int(C.mpz_probab_prime_p(&z.i[0], C.int(n))) > 0
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  3. api/go1.txt

    pkg math/big, method (*Int) MulRange(int64, int64) *Int
    pkg math/big, method (*Int) Neg(*Int) *Int
    pkg math/big, method (*Int) Not(*Int) *Int
    pkg math/big, method (*Int) Or(*Int, *Int) *Int
    pkg math/big, method (*Int) ProbablyPrime(int) bool
    pkg math/big, method (*Int) Quo(*Int, *Int) *Int
    pkg math/big, method (*Int) QuoRem(*Int, *Int, *Int) (*Int, *Int)
    pkg math/big, method (*Int) Rand(*rand.Rand, *Int) *Int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top