answersLogoWhite

0

How do you know if a number is composite or prime number?

Updated: 8/17/2019
User Avatar

Wiki User

12y ago

Best Answer

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

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

A Prime number has only 2 factors which are 1 and itself. Composite numbers are everything else except 1 and 0. 1 and 0 are neither prime, nor composite.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you know if a number is composite or prime number?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 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 276 a prime or composite number?

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


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.


Is 19 an prime or composite 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 1029 a prime or composite?

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