Lines Matching refs:generatePrime
10 generatePrime,
17 const pgeneratePrime = promisify(generatePrime);
21 assert.throws(() => generatePrime(i), {
30 assert.throws(() => generatePrime(80, i, common.mustNotCall()), {
39 assert.throws(() => generatePrime(80, {}), {
45 assert.throws(() => generatePrime(size, common.mustNotCall()), {
56 assert.throws(() => generatePrime(8, { safe: i }, common.mustNotCall()), {
59 assert.throws(() => generatePrime(8, { rem: i }, common.mustNotCall()), {
62 assert.throws(() => generatePrime(8, { add: i }, common.mustNotCall()), {
79 assert.throws(() => generatePrime(20, { add: -1n }, common.mustNotCall()), {
85 assert.throws(() => generatePrime(20, { rem: -1n }, common.mustNotCall()), {
98 generatePrime(80, common.mustSucceed((prime) => {
107 generatePrime(80, {}, common.mustSucceed((prime) => {
113 generatePrime(32, { safe: true }, common.mustSucceed((prime) => {
136 generatePrime(
167 generatePrime(128, {
175 generatePrime(128, {
278 generatePrime(32, { bigint: '' }, common.mustNotCall());
290 generatePrime(3, { bigint: true }, common.mustSucceed((prime) => {