answersLogoWhite

0

A Prime number is a positive integer with two factors: one and the number itself. If you test the numbers up to the square root and your number is not divisible by any of them, it's prime.

User Avatar

Wiki User

10y ago

Still curious? Ask our experts.

Chat with our AI personalities

JudyJudy
Simplicity is my specialty.
Chat with Judy
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin

Add your answer:

Earn +20 pts
Q: How do you determine whether a prime number is one or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

How can you determine if a number is a prime number?

if it has no other number that can divide into itself but itself ================================== Another contributor clarified: You have to determine whether there is any number ... besides '1' and the number under test itself ... that can divide evenly into the number under test. If you find even one, then it's not a prime. If there are none, then it's a prime.


How do you find the 12th prime number using c?

To keep it simple: Write a main loop that goes through all the numbers, starting with 2, and incrementing one at a time. Determine whether each number is a prime number. If it is, increment a counter. To determine whether each number is a prime number, either use an inner loop, or a separate function. Test divisibility of the number "n" by every number from 2 to n-1. If you find a factor, then it is not a prime number. Note that you can test divisibility by using the "%" operator. For example: if (number % factor == 0) // number is divisible by factor else // it isn't


How do you determine if prime number?

A prime number is a positive integer with two factors: one and the number itself. If you test the numbers up to the square root and your number is not divisible by any of them, it's prime.


Can a prime number also be a square number?

No. To be prime it has to be divisible only by itself and one. That means that no numbers multiply to be it. The only possible exception is one. In the math world it may have been decided whether or not one is a prime number, but that is debatable and I'm not aware of the answer. If 1 was considered a prime number, then it would be the only prime square.


How do you get the prime numbers?

A prime number is only divisible by itself and the number one. Prime numbers have to be odd (except for the number 2, which is prime). So smaller numbers like 7 are usually pretty easy to determine if they are prime. But the higher the number value gets, the more complicated it is to determine. So people post a list of prime numbers on the internet so you'll know what the prime numbers are.