🔥 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