Ripetizioni di Analisi
EN

Theorem · Divisibility

How to recognize a prime number

Theorem from the chapter Multiples, divisors, prime numbers, GCD and LCM of Mathematics zero, with the exercises in which it is used.

How to recognize a prime number

To determine whether is prime, divide by the primes , , , , , … in order. Stop when you reach a prime whose square exceeds , without testing that prime. If none of the divisions performed has remainder , the number is prime.

The test stops there for the following reason. If is composite, it can be written as the product of two factors greater than , namely with less than or equal to . Then does not exceed . A prime factor of does not exceed , so does not exceed either. Therefore is among the numbers tested. Since divides and divides , the division of by has remainder . For example, for we test , , , and since exceeds . None of these divisions has remainder , so is prime. For , testing gives , so is composite.

Read it in the chapter Multiples, divisors, prime numbers, GCD and LCM →

Exercises where this theorem is used

Worked examples

Practice exercises

All the definitions and theorems of Mathematics zero → · All the theorems on the site →

Report a mistake

Where:

Ripetizioni di Analisi

Keep studying

With a free account, you can pick up where you left off and see your progress next time you visit.

Sign up for free

Already have an account? Sign in

Contents