🔥 Think You’re Good at JavaScript?
Prove it with this tricky puzzle from JavaScriptNinjas.com 🥷
đź§© CHALLENGE: Almost Prime
A number is called “almost prime” if it has exactly two distinct prime factors.Can your function figure out if a number is almost prime?
đź’ˇ Try solving this:
jsCopyEditsolve(6) // true → 2 × 3
solve(15) // true ...
javascriptninjas.hashnode.dev1 min read