MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / ev

Function ev

test/compute-engine/number-theory.test.ts:533–534  ·  view source on GitHub ↗
(e: any[])

Source from the content-addressed store, hash-verified

531 expect(bn(['NextPrime', ce.number(p - 1n)])).toEqual(p);
532 });
533});
534
535describe('IsPrime is reliable for large n (shared Miller-Rabin)', () => {
536 const ip = (n: bigint) =>
537 ce.box(['IsPrime', ce.number(n)]).evaluate().toString();

Callers 1

Calls 4

replaceMethod · 0.65
toStringMethod · 0.65
evaluateMethod · 0.65
boxMethod · 0.65

Tested by

no test coverage detected