prepare algorithm and flow chart to input a number and check whether it is prime or not
Answers
Answered by
11
Answer:
The simplest primality test is trial division: given an input number, n, check whether it is evenly divisible by any prime number between 2 and √n (i.e. that the division leaves no remainder). If so, then n is composite. Otherwise, it is prime.
Explanation:
Similar questions