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(nn) to check if nn is prime.
(Hint: A prime number pp has exactly two distinct factors, 1 and pp. Can you make use of divisors(nn) to write out prime(nn)?)
Book
NCERT
Exercise
End-of-Chapter Exercises
Hints
3
Solution
Locked

Sign in to see hints, the full solution and the answer check. A free account covers Class 9–10 NCERT.

Sign in

Sign in to mark questions solved and keep a streak.