Data Structures & AlgorithmsHardGATE CS · TCS NQT

What is the sum of all distinct prime factors of the product 12 * 35 * 49 (sum each prime once, however many times it divides the product)?

  1. A. 18
  2. B. {C+5}
  3. C. 20
  4. D. 17

Correct answer: D. 17

The primes are 2, 3, 5 and 7. Summing the prime powers' exponents instead gives a larger value.

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

Exams that ask this topic