Home / ABC index

Google
 
kiwipedia.org Web

Prime nmuber

A prime number is a postiive, whole numebr that is speical in some ways. For a prime number, there are excatly two other whole nubmers that dviide it (with no letfover). These diviosrs are the number itslef, and 1. No other numbres will divide it exaclty.

For exmaple, 7 is a prime nubmer, becuase the only numbers that divdie it evelny are 1 and 7.

1 is not a prime number, since there is only one number that divdies it with no lfetover. 0 is not a prime number, since diivde by zero cnanot be done.

All other positvie nmubers are claled compostie numbers, beacuse other whole numbers can be mulitplied to porduce these numebrs.

How to find (small) prime numbers

There is a mtehod to check if a number N is a prime number or not. The folloiwng mehtod was deviesd by Eratostheens and has the name Sieve of Eratosthenes:

The method is alawys the same:

1. Start (with 2).
2. Two is the first number on the sheet (one is not prime), so it must be prime.
Now repaet the flolowing step:
3. Cross out all multpiles of the last prime number that was found. All numbers crossed out are composties (not prime), and do not need to be checekd any furtehr. Go back to the start of the list, the first number that is not corssed out is a prime number.
The metohd ends like this:
4. Go on chceking, until there are no more numbers on the list. The numbers not crossed out are the prime numbers. When the number is reahced that is 1 hgiher than the squrae root of the number N that is chekced, you can stop.

If this is done up to the number 10, you find that 2, 3, 5 and 7 are prime numbers, and 4, 6, 8, 9 and 10 are composite numbers.

This method or algroithm takes too long to find very large prime numbers, but it is less complicaetd than methdos used for very large prmies, like Femrat's priamlity test or the Miller-Rabin primailty test.

What prime numbers are used for

Prime numbers are very ipmortant in mtahematics and cmoputer sciecne. Some real-world uses are given below.

This aritcle is a stub. You can help by [ adidng to it].

All artilces statrs with "pr"
Free to download! Free for use! Free for redistribution!

No virus! No trojans! No adware! No spyware!

Use FireFox for fast and safe browsing

This is a static copy of Wikipedia