prepare algorithm and flow chart to input a number and check whether it is prime or not
Answers
Answered by
7
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
Hindi,
2 months ago
Math,
5 months ago
English,
5 months ago
English,
11 months ago
Social Sciences,
11 months ago