Searched refs:primes (Results 1 – 3 of 3) sorted by relevance
/libcore/luni/src/main/java/java/math/ |
D | Primality.java | 31 private static final int[] primes = { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, field in Primality 47 private static final BigInteger BIprimes[] = new BigInteger[primes.length]; 72 for (int i = 0; i < primes.length; i++) { 73 BIprimes[i] = BigInteger.valueOf(primes[i]); 90 int[] modules = new int[primes.length]; in nextProbablePrime() 96 if (l < primes[primes.length - 1]) { in nextProbablePrime() 97 for (i = 0; l >= primes[i]; i++) {} in nextProbablePrime() 115 for (i = 0; i < primes.length; i++) { in nextProbablePrime() 116 modules[i] = BigInt.remainderByPositiveInt(startPoint, primes[i]) - gapSize; in nextProbablePrime() 123 for (i = 0; i < primes.length; i++) { in nextProbablePrime() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | DHGenParameterSpecTest.java | 43 int[] primes = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE}; in testDHGenParameterSpec() local 45 for (int i=0; i<primes.length; i++) { in testDHGenParameterSpec() 46 DHGenParameterSpec ps = new DHGenParameterSpec(primes[i], in testDHGenParameterSpec() 50 ps.getPrimeSize(), primes[i]); in testDHGenParameterSpec()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigIntegerTest.java | 121 int[] primes = new int[1024]; in test_Constructor_IILjava_util_Random() local 124 … for (int rep = 0; rep < primes.length; ++rep) { // Manual flakiness protection for random tests. in test_Constructor_IILjava_util_Random() 128 primes[rep] = b.intValue(); in test_Constructor_IILjava_util_Random() 130 for (int i = 0; i < primes.length; ++i) { in test_Constructor_IILjava_util_Random() 131 if (primes[i] == 2) { in test_Constructor_IILjava_util_Random() 133 } else if (primes[i] == 3) { in test_Constructor_IILjava_util_Random()
|