answersLogoWhite

0

One way is to divide by all smaller numbers, up to the square root of that number. In practice, you can omit even numbers (except 2), and any number which you know is prime. Thus, for any number up to 120, it is enough to try to divide by 2, 3, 5, 7. If any of these divisions yields an integer, then the number you divided by is a factor - and your original number is composite.

User Avatar

Wiki User

8y ago

Still curious? Ask our experts.

Chat with our AI personalities

ReneRene
Change my mind. I dare you.
Chat with Rene
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
JudyJudy
Simplicity is my specialty.
Chat with Judy
More answers

Factor it. Prime numbers have two factors, composite numbers have more than two.

User Avatar

Wiki User

8y ago
User Avatar

There is no simple way to tell. To find out if a number N is prime, you have to test for divisibility by every Prime number up to int(sqrt(N)) = the integer part of the square root of N.

User Avatar

Wiki User

8y ago
User Avatar

Add your answer:

Earn +20 pts
Q: How do you find a number is prime or composite?
Write your answer...
Submit
Still have questions?
magnify glass
imp