Function to Check Prime

Easy

📝 Description

Write a function to check if number is prime

Input Format

An integer

Output Format

true/false

Constraints

1 ≤ number ≤ 10^6

🔍 Sample Input

13
            

✅ Sample Output

true
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run