MCPcopy Create free account
hub / github.com/MultithreadedJSBook/code-samples / isHappycoin

Function isHappycoin

ch3-happycoin/happycoin-piscina.js:27–29  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

25}
26
27function isHappycoin(num) {
28 return isHappy(num) && num % 10000n === 0n;
29}
30
31const THREAD_COUNT = 4;
32

Callers 1

Calls 1

isHappyFunction · 0.70

Tested by

no test coverage detected