Prime Numbers in Maths (original) (raw)

Last Updated : 28 Jan, 2026

A prime number is a natural number greater than 1 that has exactly two positive divisors: 1 and itself. Numbers that have more than two divisors are called composite numbers

Mathematically, prime numbers are defined as:

Formally, a number 'p' is prime if:

Prime Numbers 1 to 100

There are 25 prime numbers between 1 to 100. The image added below shows the prime numbers from 1 to 100.

Prime-Numbers

List of Prime numbers between 1 to 100

Smallest and Largest Prime Number

Properties of Prime Numbers

Prime numbers have some properties which are listed as follows:

For Programmers

**Also Check: Prime Numbers Worksheet

Solved Examples of Prime Numbers

**Example 1: Determine whether 37 is a prime number or not.

**Solution:

As a prime number is a positive integer greater than 1 that has no positive integer divisors other than 1 and itself.
As 37 = 1 × 37,
Therefore, 37 has no divisors other than 1 and itself, and it is a prime number.
So, 37 is a prime number.

**Example 2: Find all the prime numbers between 20 and 40.

**Solution:

The prime numbers between 20 and 40 are 23, 29, and 37.

**Example 3: Is 19 a Prime Number?

**Solution:

Let us write the given number in the form of 6n ± 1.
6(3) + 1 = 18 + 1 = 19
Therefore, 19 is a prime number

**Example 4: Which is the greatest prime number between 1 to 10?

**Solution:

There are 4 prime numbers between 1 and 10 and the greatest prime number between 1 and 10 is 7.

**Example 5: Why is 20, not a prime number?

**Solution:

The factors of 20 are 1, 2, 4, 5, 10, and 20. Thus, 20 has more than two factors. Since the number of factors of 20 is more than two numbers, it is NOT a prime number.