Data Structures & AlgorithmsVery hardGATE CS · ICPC regional

What is the smallest positive integer that has exactly 6 positive divisors?

  1. A. 13
  2. B. 14
  3. C. 12
  4. D. 16

Correct answer: C. 12

A number with 6 divisors has the form p^5 or p^2 * q. The smallest is 2^2 * 3 = 12, which has divisors 1, 2, 3, 4, 6, 12.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic