---
title: "Discussion on \"Check if a number is Prime or not\" | Hashnode"
description: "Discussion on \"Check if a number is Prime or not\". In this tutorial let us look at different methods to check if a number is prime or not in JavaScript and understand where exactly are these useful.\nA prime number is a natural number greater than 1 that cannot be obtained by multiplying two smaller n..."
url: "https://hashnode.com/posts/check-if-a-number-is-prime-or-not/5fa52f633e634314b5179fcb"
---

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

Discussion

# [Check if a number is Prime or not](https://tutorials-kept-simple.hashnode.dev/check-if-a-number-is-prime-or-not?utm_source=hashnode&utm_medium=feed)

In this tutorial let us look at different methods to check if a number is prime or not in JavaScript and understand where exactly are these useful. A prime number is a natural number greater than 1 that cannot be obtained by multiplying two smaller n...

Nov 6, 2020 · 4 min read · tutorials-kept-simple.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Tutorials kept Simple](https://hashnode.com/@tutorials-kept-simpl)

@tutorials-kept-simpl

  
[View profile](https://hashnode.com/@tutorials-kept-simpl)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
