answersLogoWhite

0


Best Answer

That depends what you need to "solve". If what you want to do is check whether a number is prime or composite, check whether it is divisible by 2, and then by all odd numbers up to the square root of your number. For example, for numbers up to 120, you only need to check whether they are divisible by 2, 3, 5, 7 (9 is composite, so you don't really need to check divisibility by 9). If your number is divisible by any such number, then it is composite; otherwise it is a prime.

There are more efficient methods, but they are also more complicated, and it really only makes sense to use them for much larger numbers.

User Avatar

Wiki User

8y 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 have a different name.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you solve prime and composite numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Are prime numbers greater than 2 composite?

No. Prime numbers cannot be composite and composite numbers cannot be prime!


Can you solve 15 if it is composite or prime?

prime


Which numbers are prime numbers and which are composite numbers from 1 to 100?

1 is special 2 prime 3 prime 4 composite 5 prime 6 composite 7 prime 8 composite 9 composite 10 composite 11 prime 12 composite ext.


Does prime factorization of composite numbers include prime and composite numbers?

No, prime factorizations consist entirely of prime numbers.


Is the product of two prime numbers composite or prime?

The product of two prime numbers will be composite.


Is it true that prime numbers have to be prime and composite?

Prime numbers can not composite as - Prime number has only 2 factors whereas composite have more than 2


Does the prime factorization of any composite number include prime and composite numbers?

Prime factorization never includes a composite number. All numbers in prime factorization must be prime numbers.


What is the name for the numbers that are not prime numbers?

Numbers other than prime prime numbers are composite numbers. Only whole numbers should be considered for prime & composite numbers. However, '1' is an exceptional case because it is neither prime nor composite.


Are there more composite or prime numbers?

there are more composite numbers the prime becuz more things can be divided into


What numbers are prime numbers and what numbers are composite?

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


Is 37 57 and 67 prime or composite numbers?

Prime, composite, prime.


How are prime numbers and composite numbers related?

The relationship between prime numbers and composite numbers is that they are antonyms or opposites of each other. A natural number, is either prime or composite, but it can not be both. Prime numbers have only two factors, one and itself. Composite numbers are whole numbers that are not prime numbers, which means that they have factors other than one and itself.