---
title: "Discussion on \"🔥 Think You’re Good at JavaScript?\nProve it with this tricky puzzle from JavaScriptNinjas.com 🥷\" | Hashnode"
description: "Discussion on \"🔥 Think You’re Good at JavaScript?\nProve it with this tricky puzzle from JavaScriptNinjas.com 🥷\". 🧩 CHALLENGE: Almost Prime\nA number is called “almost prime” if it has exactly two distinct prime factors.Can your function figure out if a number is almost prime?\n💡 Try solving this:\njsCopyEditsolve(6)    // true      → 2 × 3  \nsolve(15)   // true ..."
url: "https://hashnode.com/posts/think-youre-good-at-javascript-prove-it-with-this-tricky-puzzle-from-javascriptninjascom/688acff966cdffe570118c26"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [🔥 Think You’re Good at JavaScript? Prove it with this tricky puzzle from JavaScriptNinjas.com 🥷](https://javascriptninjas.hashnode.dev/think-youre-good-at-javascript-prove-it-with-this-tricky-puzzle-from-javascriptninjascom?utm_source=hashnode&utm_medium=feed)

🧩 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 ...

Jul 31, 2025 · 1 min read · javascriptninjas.hashnode.dev  
Read the article

## Written by

[Mahendra shahi](https://hashnode.com/@javascriptninjas)

@javascriptninjas

  
[View profile](https://hashnode.com/@javascriptninjas)

javascript web-development coding-challenges programming beginners learning frontend

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
