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

Function isHappycoin

ch3-happycoin/happycoin.js:26–28  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

24}
25
26function isHappycoin(num) {
27 return isHappy(num) && num % 10000n === 0n;
28}
29
30let count = 0;
31for (let i = 1; i < 10_000_000; i++) {

Callers 1

happycoin.jsFile · 0.70

Calls 1

isHappyFunction · 0.70

Tested by

no test coverage detected