Home
last modified time | relevance | path

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

12345678910>>...13

/dports/math/R-cran-numbers/numbers/man/
H A Disprime.Rd1 \name{isPrime}
2 \alias{isPrime}
3 \title{isPrime Property}
10 isPrime(x)
27 x * isPrime(x)
33 if (all(isPrime(octett))) {
/dports/security/py-pycryptodomex/pycryptodome-3.10.1/lib/Crypto/SelfTest/Util/
H A Dtest_number.py109 …self.assertEqual(number.isPrime(-3), False) # Regression test: negative numbers should not be …
110 …self.assertEqual(number.isPrime(-2), False) # Regression test: negative numbers should not be …
111 …self.assertEqual(number.isPrime(1), False) # Regression test: isPrime(1) caused some versions…
112 self.assertEqual(number.isPrime(2), True)
113 self.assertEqual(number.isPrime(3), True)
114 self.assertEqual(number.isPrime(4), False)
115 self.assertEqual(number.isPrime(2**1279-1), True)
116 …self.assertEqual(number.isPrime(-(2**1279-1)), False) # Regression test: negative numbers shou…
124 self.assertEqual(number.isPrime(int(composite)), False)
/dports/security/py-pycryptodome/pycryptodome-3.10.1/lib/Crypto/SelfTest/Util/
H A Dtest_number.py109 …self.assertEqual(number.isPrime(-3), False) # Regression test: negative numbers should not be …
110 …self.assertEqual(number.isPrime(-2), False) # Regression test: negative numbers should not be …
111 …self.assertEqual(number.isPrime(1), False) # Regression test: isPrime(1) caused some versions…
112 self.assertEqual(number.isPrime(2), True)
113 self.assertEqual(number.isPrime(3), True)
114 self.assertEqual(number.isPrime(4), False)
115 self.assertEqual(number.isPrime(2**1279-1), True)
116 …self.assertEqual(number.isPrime(-(2**1279-1)), False) # Regression test: negative numbers shou…
124 self.assertEqual(number.isPrime(int(composite)), False)
/dports/devel/folly/folly-2021.12.27.00/folly/gen/test/
H A DParallelBenchmark.cpp64 static auto isPrime = [](int n) { in __anonc7ea33910502() variable
107 BENCH_GEN(huge | filter(isPrime) | count);
108 BENCH_GEN_REL(ch | cat | filter(isPrime) | count);
109 BENCH_GEN_REL(ch | parallel(cat | filter(isPrime)) | count);
110 BENCH_GEN_REL(ch | parallel(cat | filter(isPrime) | sub(count)) | sum);
156 huge | filter(isPrime) | count 295.93ms 3.38
157 ch | cat | filter(isPrime) | count 99.76% 296.64ms 3.37
158 ch | parallel(cat | filter(isPrime)) | count 142.75% 207.31ms 4.82
159 ch | parallel(cat | filter(isPrime) | sub(count 1538.50% 19.24ms 51.99
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/test/micro/org/openjdk/bench/java/util/stream/tasks/PrimesFilter/t10000/
H A DLambda.java53 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(n -> PrimesProblem.isPrime(n)).coll… in bulk_seq_lambda()
58 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(PrimesProblem::isPrime).collect(Col… in bulk_seq_methodRef()
63 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).collect(Colle… in bulk_par_lambda()
68 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).collect(Collecto… in bulk_par_methodRef()
73 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).sequential().… in bulk_parseq_lambda()
78 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).sequential().col… in bulk_parseq_methodRef()
H A DBulk.java59 if (PrimesProblem.isPrime(i)) { in hm_seq()
78 return PrimesProblem.isPrime(o); in bulk_seq_inner()
91 return PrimesProblem.isPrime(o);
104 return PrimesProblem.isPrime(o);
117 if (PrimesProblem.isPrime(low))
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/test/micro/org/openjdk/bench/java/util/stream/tasks/PrimesFilter/t100/
H A DLambda.java53 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(n -> PrimesProblem.isPrime(n)).coll… in bulk_seq_lambda()
58 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(PrimesProblem::isPrime).collect(Col… in bulk_seq_methodRef()
63 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).collect(Colle… in bulk_par_lambda()
68 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).collect(Collecto… in bulk_par_methodRef()
73 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).sequential().… in bulk_parseq_lambda()
78 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).sequential().col… in bulk_parseq_methodRef()
H A DBulk.java59 if (PrimesProblem.isPrime(i)) { in hm_seq()
78 return PrimesProblem.isPrime(o); in bulk_seq_inner()
91 return PrimesProblem.isPrime(o);
104 return PrimesProblem.isPrime(o);
117 if (PrimesProblem.isPrime(low))
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/test/micro/org/openjdk/bench/java/util/stream/tasks/PrimesFilter/t100/
H A DLambda.java53 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(n -> PrimesProblem.isPrime(n)).coll… in bulk_seq_lambda()
58 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(PrimesProblem::isPrime).collect(Col… in bulk_seq_methodRef()
63 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).collect(Colle… in bulk_par_lambda()
68 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).collect(Collecto… in bulk_par_methodRef()
73 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).sequential().… in bulk_parseq_lambda()
78 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).sequential().col… in bulk_parseq_methodRef()
H A DBulk.java59 if (PrimesProblem.isPrime(i)) { in hm_seq()
78 return PrimesProblem.isPrime(o); in bulk_seq_inner()
91 return PrimesProblem.isPrime(o);
104 return PrimesProblem.isPrime(o);
117 if (PrimesProblem.isPrime(low))
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/test/micro/org/openjdk/bench/java/util/stream/tasks/PrimesFilter/t10000/
H A DLambda.java53 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(n -> PrimesProblem.isPrime(n)).coll… in bulk_seq_lambda()
58 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(PrimesProblem::isPrime).collect(Col… in bulk_seq_methodRef()
63 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).collect(Colle… in bulk_par_lambda()
68 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).collect(Collecto… in bulk_par_methodRef()
73 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).sequential().… in bulk_parseq_lambda()
78 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).sequential().col… in bulk_parseq_methodRef()
H A DBulk.java59 if (PrimesProblem.isPrime(i)) { in hm_seq()
78 return PrimesProblem.isPrime(o); in bulk_seq_inner()
91 return PrimesProblem.isPrime(o);
104 return PrimesProblem.isPrime(o);
117 if (PrimesProblem.isPrime(low))
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/test/micro/org/openjdk/bench/java/util/stream/tasks/PrimesFilter/t100/
H A DLambda.java53 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(n -> PrimesProblem.isPrime(n)).coll… in bulk_seq_lambda()
58 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(PrimesProblem::isPrime).collect(Col… in bulk_seq_methodRef()
63 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).collect(Colle… in bulk_par_lambda()
68 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).collect(Collecto… in bulk_par_methodRef()
73 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).sequential().… in bulk_parseq_lambda()
78 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).sequential().col… in bulk_parseq_methodRef()
H A DBulk.java59 if (PrimesProblem.isPrime(i)) { in hm_seq()
78 return PrimesProblem.isPrime(o); in bulk_seq_inner()
91 return PrimesProblem.isPrime(o);
104 return PrimesProblem.isPrime(o);
117 if (PrimesProblem.isPrime(low))
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/test/micro/org/openjdk/bench/java/util/stream/tasks/PrimesFilter/t10000/
H A DLambda.java53 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(n -> PrimesProblem.isPrime(n)).coll… in bulk_seq_lambda()
58 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(PrimesProblem::isPrime).collect(Col… in bulk_seq_methodRef()
63 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).collect(Colle… in bulk_par_lambda()
68 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).collect(Collecto… in bulk_par_methodRef()
73 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).sequential().… in bulk_parseq_lambda()
78 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).sequential().col… in bulk_parseq_methodRef()
H A DBulk.java59 if (PrimesProblem.isPrime(i)) { in hm_seq()
78 return PrimesProblem.isPrime(o); in bulk_seq_inner()
91 return PrimesProblem.isPrime(o);
104 return PrimesProblem.isPrime(o);
117 if (PrimesProblem.isPrime(low))
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/test/micro/org/openjdk/bench/java/util/stream/tasks/PrimesFilter/t10000/
H A DLambda.java53 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(n -> PrimesProblem.isPrime(n)).coll… in bulk_seq_lambda()
58 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(PrimesProblem::isPrime).collect(Col… in bulk_seq_methodRef()
63 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).collect(Colle… in bulk_par_lambda()
68 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).collect(Collecto… in bulk_par_methodRef()
73 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).sequential().… in bulk_parseq_lambda()
78 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).sequential().col… in bulk_parseq_methodRef()
H A DBulk.java59 if (PrimesProblem.isPrime(i)) { in hm_seq()
78 return PrimesProblem.isPrime(o); in bulk_seq_inner()
91 return PrimesProblem.isPrime(o);
104 return PrimesProblem.isPrime(o);
117 if (PrimesProblem.isPrime(low))
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/test/micro/org/openjdk/bench/java/util/stream/tasks/PrimesFilter/t100/
H A DLambda.java53 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(n -> PrimesProblem.isPrime(n)).coll… in bulk_seq_lambda()
58 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(PrimesProblem::isPrime).collect(Col… in bulk_seq_methodRef()
63 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).collect(Colle… in bulk_par_lambda()
68 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).collect(Collecto… in bulk_par_methodRef()
73 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).sequential().… in bulk_parseq_lambda()
78 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).sequential().col… in bulk_parseq_methodRef()
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/test/micro/org/openjdk/bench/java/util/stream/tasks/PrimesFilter/t100/
H A DLambda.java53 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(n -> PrimesProblem.isPrime(n)).coll… in bulk_seq_lambda()
58 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(PrimesProblem::isPrime).collect(Col… in bulk_seq_methodRef()
63 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).collect(Colle… in bulk_par_lambda()
68 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).collect(Collecto… in bulk_par_methodRef()
73 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).sequential().… in bulk_parseq_lambda()
78 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).sequential().col… in bulk_parseq_methodRef()
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/test/micro/org/openjdk/bench/java/util/stream/tasks/PrimesFilter/t10000/
H A DLambda.java53 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(n -> PrimesProblem.isPrime(n)).coll… in bulk_seq_lambda()
58 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(PrimesProblem::isPrime).collect(Col… in bulk_seq_methodRef()
63 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).collect(Colle… in bulk_par_lambda()
68 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).collect(Collecto… in bulk_par_methodRef()
73 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).sequential().… in bulk_parseq_lambda()
78 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).sequential().col… in bulk_parseq_methodRef()
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/test/micro/org/openjdk/bench/java/util/stream/tasks/PrimesFilter/t10000/
H A DLambda.java53 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(n -> PrimesProblem.isPrime(n)).coll… in bulk_seq_lambda()
58 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(PrimesProblem::isPrime).collect(Col… in bulk_seq_methodRef()
63 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).collect(Colle… in bulk_par_lambda()
68 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).collect(Collecto… in bulk_par_methodRef()
73 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).sequential().… in bulk_parseq_lambda()
78 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).sequential().col… in bulk_parseq_methodRef()
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/test/micro/org/openjdk/bench/java/util/stream/tasks/PrimesFilter/t100/
H A DLambda.java53 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(n -> PrimesProblem.isPrime(n)).coll… in bulk_seq_lambda()
58 …return LongStream.range(RANGE_START, RANGE_END).boxed().filter(PrimesProblem::isPrime).collect(Col… in bulk_seq_methodRef()
63 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).collect(Colle… in bulk_par_lambda()
68 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).collect(Collecto… in bulk_par_methodRef()
73 …nge(RANGE_START, RANGE_END).parallel().boxed().filter(n -> PrimesProblem.isPrime(n)).sequential().… in bulk_parseq_lambda()
78 …m.range(RANGE_START, RANGE_END).parallel().boxed().filter(PrimesProblem::isPrime).sequential().col… in bulk_parseq_methodRef()
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/main/java/org/apache/commons/math3/primes/
H A DPrimes.java53 public static boolean isPrime(int n) { in isPrime() method in Primes
85 if (isPrime(n)) { in nextPrime()
99 if (isPrime(n)) { in nextPrime()
103 if (isPrime(n)) { in nextPrime()
/dports/audio/faust/faust-2.37.3/tools/physicalModeling/mesh2faust/vega/libraries/hashTable/
H A DhashTable.cpp43 while (!isPrime(p)); in HashTable()
52 bool HashTable<Data>::isPrime(unsigned int n) in isPrime() function in HashTable
163 template bool HashTable<set<unsigned int> >::isPrime(unsigned int n);
173 template bool HashTable<set<int> >::isPrime(unsigned int n);
183 template bool HashTable<unsigned int>::isPrime(unsigned int n);
193 template bool HashTable<int>::isPrime(unsigned int n);

12345678910>>...13