How to check whether a number is prime or not?
Answers
Answered by
0
How to check whether a number is prime or not....
Divide the number by it's factors.....
If dividing the number by it's factors, only two of them have the remainder as 0 then the number is prime....
Ex- 3,7, etc...
Divide the number by it's factors.....
If dividing the number by it's factors, only two of them have the remainder as 0 then the number is prime....
Ex- 3,7, etc...
TheRevenant01:
Could be explained better!
Answered by
2
Prime numbers are the numbers which can only be divided by itself and 1. The two factors in all the cases are 1 and the number themself.
The best way to check if a number is prime or not is to split the number into its factors.
For example, 4 cannot be taken as prime number because it can be divided by a number other than itself and 1.
For example, 5 can be taken as prime number because it cannot be divided by any other number than itself and 1.
The best way to check if a number is prime or not is to split the number into its factors.
For example, 4 cannot be taken as prime number because it can be divided by a number other than itself and 1.
For example, 5 can be taken as prime number because it cannot be divided by any other number than itself and 1.
Similar questions