Computer Science, asked by shiakhaseena720, 5 months ago

Write a simple algorithm for prime number?​

Answers

Answered by Anonymous
2

Explanation:

Prime Number Program In C

Algorithm. Algorithm of this program is very easy − START Step 1 → Take integer variable A Step 2 → Divide the variable A with (A-1 to 2) Step 3 → If A is divisible by any value (A-1 to 2) it is not prime Step 4 → Else it is prime STOP.

Pseudocoad ...

Implementation. ...

Similar questions