Data Structures & AlgorithmsHardGATE CS · ICPC regional

What is the sum of the distinct prime divisors of 2310?

  1. A. 29
  2. B. 28
  3. C. 30
  4. D. 32

Correct answer: B. 28

2310 = 2 * 3 * 5 * 7 * 11, and the distinct primes sum to 28.

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

Exams that ask this topic