Is it a prime number?

Join Trial or Access Free Resources

353 is a prime number. So is 7919 (in fact it is the 1000th prime). There are 25 primes between 1 and 100. From 1 to 1000 there are 168 of them.

It is difficult to check whether a number is prime or not. One simple method is to try and divide the number with smaller numbers. For example to find out whether 351 is a prime or not, you start checking by dividing the number by small numbers such as 2. Of course, it is an odd number so we immediately know that it is not divisible by 2. Next we try by 3 and it works! Indeed 117 times 3 is 351.

But suppose we working with 899. To check if it is a prime or not we start dividing it small numbers. 2 will not divide as the number is odd. But 3 will not divide either. If we keep on checking, we will see that up till 28 no number divides it (899 is $ 29 \times 31$).

How far should we check to be sure whether a number is prime or not? Suppose n is the number. Then we should try and divide 'n' with all prime numbers up till $( \sqrt n )$. Indeed if n is not a prime number then it must have a divisor smaller than or equal to $ ( \sqrt n )$ apart from 1. This fact has a simple proof.

Suppose n is not prime. Then it is composite (that is it has a divisor apart from 1 and it self).
Let p be a divisor of n. then $latex ( q =\frac{n}{p})$ is also a divisor of n.
That is n = pq
Now we claim that one of p or q is smaller than or equal to $( \sqrt n )$.
If our claim is false then both of them are greater than $( \sqrt n )$.
$ p > ( \sqrt n ) ; q > ( \sqrt n )$
This implies $ (p \times q > \sqrt n \times \sqrt n = n )$.
But p*q is not greater than n.
Hence our claim is correct.

Therefore when we have a number to check whether it is a prime or not, it is sufficient to try and divide it with all the prime numbers smaller than or equal to $ ( \sqrt n )$ (since if it is composite then it will have a divisor which smaller than or equal to $ ( \sqrt n )$ and this divisor is either itself prime or is divisible by a still smaller prime number).

Hence to check whether 641 is prime or not it is sufficient to check with all primes smaller than $( \sqrt {641} ) ~ 25$. That is we try to divide it with 2, 3, 5, 7, 11, 13, 17, 19, 23. None of them divides 641. Thus we conclude that it must be a prime.

More Posts
ISI M.Stat Entrance Success Story 2026

ISI M.Stat Entrance Success Story 2026

June 27, 2026

In 2026, the following Cheenta students have been successful for Indian Statistical Institute's M.Stat Entrance. They ranked within the first 50 in the entire country in these entrances. I.S.I. M.Stat Entrance

Read More
ISI B.Stat-B.Math and CMI BSc. Math Entrance Success Story 2026

ISI B.Stat-B.Math and CMI BSc. Math Entrance Success Story 2026

In 2026, the following Cheenta students have been successful for Indian Statistical Institute's B.Stat Entrance and Chennai Mathematical Institute's B.Sc. Math Entrance. They ranked within the first 200 in the entire country in these entrances. Most of these students attended the problem solving workshops regularly, which happen 5 days every week. CMI B.Sc. Math Entrance […]

Read More
8 Cheenta students cracked the Regional Math Olympiad 2025 

8 Cheenta students cracked the Regional Math Olympiad 2025 

December 26, 2025

In 2025, 8 students from Cheenta Academy cracked the prestigious Regional Math Olympiad. In this post, we will share some of their success stories and learning strategies. The Regional Mathematics Olympiad (RMO) and the Indian National Mathematics Olympiad (INMO) are two most important mathematics contests in India.These two contests are for the students who are […]

Read More
Cheenta Students Shine at IOQM 2025

Cheenta Students Shine at IOQM 2025

October 26, 2025

Cheenta Academy proudly celebrates the success of 27 current and former students who qualified for the Indian Olympiad Qualifier in Mathematics (IOQM) 2025, advancing to the next stage — RMO. This accomplishment highlights their perseverance and Cheenta’s ongoing mission to nurture mathematical excellence and research-oriented learning.

Read More

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2010 - 2025, Cheenta Academy. All rights reserved.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram