# Prime Number Calculator

Put the value and hit on calculate button to check whether the number is prime or not

Give Us Feedback

## Prime Number Calculator

Prime number calculator is used to check whether the given number is prime or not and give true or false for that number, a true mean number is prime, and a false means number is not prime.

This prime calculator also gives the higher and lower prime numbers of the given number

Note: You can write the input from (1 to 9999999)

## What is a prime number?

A prime number is a sequence of numbers in a real line and these are the number which has only two positive divisors and only two negative divisors. You can say a number is called a prime number if it divides by itself and also with 1.

For Example:

2 is a prime number it divides by itself and also with 1.

Here is a list of prime numbers from `1 to 100`

 Prime Numbers 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97

## Examples

Example 1:

131 is a prime number or not.

Solution

Yes, it’s a prime number.

`131/131, 131/1`

Because it has only two positive divisors.

Example 2:

162 is a prime number or not.

Solution

No, it’s not a prime number.

`162/162,162/2,162/3, 162/1`

Because it has more than two positive divisors.

Here are a few more examples

 Number Prime number 66 False 43 True 67 True 12 False 59 True 79 True 34 False