Exercises/#115 Check Prime Number
#115

Check Prime Number

EasyπŸ”’ Math & Numbers
35 XP

Problem

Write a function that returns true if a number is prime.

Examples

Input: n = 17
Output: true

Input: n = 15
Output: false
math
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

115 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features