write a javascript program check a number prime or not
Answers
Answered by
2
Answer:
- The condition number % i == 0 checks if the number is divisible by numbers other than 1 and itself.
- If the remainder value is evaluated to 0, that number is not a prime number.
- The isPrime variable is used to store a boolean value: either true or false.
Kindly Mark As Brainliest ^_^
Answered by
1
Answer:
hello
Explanation:
hope l am help you!
Attachments:
Similar questions