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

Function nextPrime

test/compute-engine/number-theory.test.ts:186–190  ·  view source on GitHub ↗
(n: number, k?: number)

Source from the content-addressed store, hash-verified

184 expect(nthPrime(-3)).toEqual('NthPrime(-3)');
185 });
186});
187
188const nextPrime = (n: number, k?: number) =>
189 ce
190 .expr(k === undefined ? ['NextPrime', n] : ['NextPrime', n, k])
191 .evaluate()
192 .toString();
193

Callers 1

Calls 3

toStringMethod · 0.65
evaluateMethod · 0.65
exprMethod · 0.65

Tested by

no test coverage detected