answersLogoWhite

0

The Sieve of Eratosthenes can be used for most of the lower primes; for how to use it, see the related links. For larger primes, i.e. those with more than 3 digits, it is quicker to use a simple algorithm.

  1. Find the square root of the number you wish to determine and round upwards; this is your higher bound. The square root can often be estimated by rounding to the nearest 100 or 1000, as shown below. This does not affect the results, and may or may not cause redundancy in the division step.
  2. List all prime numbers up to and including this bound. If you do not have all of the primes up to this point, then either continue the sieve until you do, or find some other primes using those already found and another number by this method. The primes from 1 to 500 are listed in a related question.
  3. Divide the number by each of these primes in turn: a) if one of the primes can divide the number with no remainder, it is composite, b) if none of the primes divide it without remainder, it is also prime.

For example, deterimining whether 997 is composite or prime by this method;

  • 997 is almost 1000, so the square root of 1000 (31.62) rounded upward will do for the purpose.
  • The primes up until 32 are easily found by the sieve, if this has not been done already. They are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 and 31.
  • Dividing 997 by each of these, we find that none of them divide exactly. Thus 997 is a prime.

Another example, using 5893;

  • 5893 is almost 6000; the square root of this rounded upward is 78.
  • The prime numbers we know to this point are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 and 31. Using the sieve again, we can find that the next primes are 37, 41, 43, 47, 53, 59, 61, 67, 71 and 73.
  • Dividing 5893 by each, we find that just 71 divides 5893 exactly, into 83. These are actually the only factors besides 1 and itself as 83 is also prime. Thus 5893 is a composite.
User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Is 649 prime or composite?

No it is a composite number if you want to know


Why is it important to know if a number is prime or composite?

A prime number can never be composite in any case. There is an exception for 2 which is both.


Is 83 composite-?

For goodness sake! This will be on a test one day and you will not know it! But, the answer is no, it is prime


When a composite is divided by 9 then does the quotient become prime number?

We can't say anything about it until we know the number,it can be prime or composite.


Is 29 an prime or composite number?

It is prime. Whenever you wanted to know a number is prime or composite, use this site. It can tell you the number is prime or not: prime-calculator dot com. It has lots of other abilities. Enjoy it.


Is 61 a prime number of composite number?

I think it's prime. But whenever you wanted to know a number is prime or composite, use this site. It must be usefull:prime-calculator dot com


Is 276 a prime or composite number?

Composite: i know it can at least be divided by 2 and 3


Is 17 an prime or composite number?

Prime. Whenever you wanted to know a number is prime or composite, use this site. It must be usefull: prime-calculator dot com. It has lots of other abilities. Enjoy it.


Is 1029 a prime or composite?

It is not a prime number, it is a composite number.


Is 17 prime or composite number?

It is prime


Is seven a prime or composite number?

It is the forth prime number. Whenever you wanted to know a number is prime or composite, use this site. It must be usefull: prime-calculator dot com. It has lots of other abilities. Enjoy it.


Is 2 an prime or composite number?

Yes. it is the first prime number. Whenever you wanted to know a number is prime or composite, use this site. It can tell you that: prime-calculator dot com. It has lots of other abilities. Enjoy it.