Test for prime numbers

Test for prime numbers

IP 1

For an integer \(n>1\), try dividing \(n\) by every prime not exceeding \(\sqrt n\).

If none divide exactly, the number is prime.

If any divide exactly, the number is composite.

Video Solution:

Video Solution

Video solution locked

A free account saves your progress; this video needs a course plan.

Solution:

Solution locked

680+ questions here come with free worked solutions. A free account saves your questions and progress; this one needs a course plan.

Answer:An integer \(n>1\) is prime if no prime number less than or equal to \(\sqrt n\) divides it exactly.

Need help? Join our E-Maths tuition for O-Level success.

Learn more