Home
last modified time | relevance | path

Searched refs:isPrime (Results 1 – 24 of 24) sorted by relevance

/external/mbedtls/scripts/mbedtls_dev/
Dbignum_data.py23 from Cryptodome.Util.number import isPrime, getPrime #type: ignore #pylint: disable=import-error
135 if isPrime(prime, 1e-30):
/external/swiftshader/third_party/marl/examples/
Dprimes.cpp34 bool isPrime(int i) { in isPrime() function
67 if (isPrime(i)) { in main()
/external/slf4j/slf4j-ext/src/test/java/org/slf4j/profiler/
DSortAndPruneComposites.java69 if (isPrime(n)) { in pruneComposites()
82 public boolean isPrime(int n) { in isPrime() method in SortAndPruneComposites
/external/guava/android/guava-tests/benchmark/com/google/common/math/
DIntMathBenchmark.java105 int isPrime(int reps) { in isPrime() method in IntMathBenchmark
109 if (IntMath.isPrime(positive[j])) { in isPrime()
DLongMathBenchmark.java107 int isPrime(int reps) { in isPrime() method in LongMathBenchmark
111 if (LongMath.isPrime(positive[j])) { in isPrime()
/external/guava/guava-tests/benchmark/com/google/common/math/
DIntMathBenchmark.java105 int isPrime(int reps) { in isPrime() method in IntMathBenchmark
109 if (IntMath.isPrime(positive[j])) { in isPrime()
DLongMathBenchmark.java107 int isPrime(int reps) { in isPrime() method in LongMathBenchmark
111 if (LongMath.isPrime(positive[j])) { in isPrime()
/external/jacoco/org.jacoco.examples/src/org/jacoco/examples/
DCoreTutorial.java44 isPrime(7); in run()
47 private boolean isPrime(final int n) { in isPrime() method in CoreTutorial.TestTarget
/external/guava/guava-tests/test/com/google/common/math/
DLongMathTest.java899 assertEquals(BigInteger.valueOf(i).isProbablePrime(100), LongMath.isPrime(i)); in testIsPrimeSmall()
908 assertEquals(BigInteger.valueOf(l).isProbablePrime(100), LongMath.isPrime(l)); in testIsPrimeManyConstants()
919 assertEquals(BigInteger.valueOf(l).isProbablePrime(100), LongMath.isPrime(l)); in testIsPrimeOnUniformRandom()
930 assertTrue(LongMath.isPrime(p)); in testIsPrimeOnRandomPrimes()
942 assertFalse(LongMath.isPrime(p * q)); in testIsPrimeOnRandomComposites()
950 LongMath.isPrime(-1); in testIsPrimeThrowsOnNegative()
DIntMathTest.java761 assertEquals(LongMath.isPrime(i), IntMath.isPrime(i)); in testIsPrime()
768 assertEquals(LongMath.isPrime(n), IntMath.isPrime(n)); in testIsPrime()
/external/guava/android/guava-tests/test/com/google/common/math/
DLongMathTest.java899 assertEquals(BigInteger.valueOf(i).isProbablePrime(100), LongMath.isPrime(i)); in testIsPrimeSmall()
908 assertEquals(BigInteger.valueOf(l).isProbablePrime(100), LongMath.isPrime(l)); in testIsPrimeManyConstants()
919 assertEquals(BigInteger.valueOf(l).isProbablePrime(100), LongMath.isPrime(l)); in testIsPrimeOnUniformRandom()
930 assertTrue(LongMath.isPrime(p)); in testIsPrimeOnRandomPrimes()
942 assertFalse(LongMath.isPrime(p * q)); in testIsPrimeOnRandomComposites()
950 LongMath.isPrime(-1); in testIsPrimeThrowsOnNegative()
DIntMathTest.java761 assertEquals(LongMath.isPrime(i), IntMath.isPrime(i)); in testIsPrime()
768 assertEquals(LongMath.isPrime(n), IntMath.isPrime(n)); in testIsPrime()
/external/guava/android/guava/src/com/google/common/math/
DIntMath.java724 public static boolean isPrime(int n) { in isPrime() method
725 return LongMath.isPrime(n); in isPrime()
DLongMath.java1004 public static boolean isPrime(long n) { in isPrime() method
/external/guava/guava/src/com/google/common/math/
DIntMath.java724 public static boolean isPrime(int n) { in isPrime() method
725 return LongMath.isPrime(n); in isPrime()
DLongMath.java1004 public static boolean isPrime(long n) { in isPrime() method
/external/bcc/tools/
Dtclcalls_example.txt23 slowy/App.isPrime 8969 4841017.64
Dphpcalls_example.txt23 slowy/App.isPrime 8969 4841017.64
Dperlcalls_example.txt23 slowy/App.isPrime 8969 4841017.64
Drubycalls_example.txt23 slowy/App.isPrime 8969 4841017.64
Djavacalls_example.txt23 slowy/App.isPrime 8969 4841017.64
Dpythoncalls_example.txt23 slowy/App.isPrime 8969 4841017.64
/external/bcc/tools/lib/
Ducalls_example.txt23 slowy/App.isPrime 8969 4841017.64
/external/ktfmt/core/src/test/java/com/facebook/ktfmt/format/
DFormatterTest.kt3454 |val Int.isPrime: Boolean in handle extension properties()