algoritm to find if a no is prime or composit
Answers
Answered by
0
Explanation:
1.START
2.Take integer variable A
3. Divide the variable A with (A-1 to 2)
4. If A is divisible by any value (A-1 to 2) it is not prime
5.Else it is prime
6. STOP
Answered by
0
Answer:
prime:-
A prime number is a number that is divisible only by two numbers itself and one. The factor of a number is a number that can divide it. The list of the first ten prime numbers is 2,3,5,7,11,13,17,23,29,31.
composit:-
If a number less than 121 isn't divisible by 2, 3, 5, or 7, it's prime; otherwise, it's composite.
If a number less than 289 isn't divisible by 2, 3, 5, 7, 11, or 13, it's prime; otherwise, it's composite.
Explanation:
hope you like
Similar questions