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

Function factorInteger

test/compute-engine/number-theory.test.ts:52–53  ·  view source on GitHub ↗
(n: number | bigint)

Source from the content-addressed store, hash-verified

50 expect(ce.expr(['IsHappy', 4]).evaluate().json).toBe('False');
51 });
52});
53
54const factorInteger = (n: number | bigint) =>
55 ce.expr(['FactorInteger', ce.number(n)]).evaluate().toString();
56

Callers 1

Calls 4

toStringMethod · 0.65
evaluateMethod · 0.65
exprMethod · 0.65
numberMethod · 0.65

Tested by

no test coverage detected