Q3
Class IX · NCERTShort answermedium Sign in for help
Ch 11 · The World of Algorithms · End-of-Chapter Exercises · 3 of 12 in this chapter
Write an algorithm prime() to check if is prime.
(Hint: A prime number has exactly two distinct factors, 1 and . Can you make use of divisors() to write out prime()?)
(Hint: A prime number has exactly two distinct factors, 1 and . Can you make use of divisors() to write out prime()?)
- Book
- NCERT
- Exercise
- End-of-Chapter Exercises
- Hints
- 3
- Solution
- Locked