← All problemsSign in

Debu and Function

Tired of solving all the problems given by his older brother Biswa, Debu has decided to challenge him with the following mathematical problem : A positive integer N can be written as product of powers of distinct prime numbers: N = p1r1 * p2r2 .... * pkrk where p1, p1, ..., pk are distinct prime factors of N A function f is defined as: f(N, K) = Σ riK where ri is as described above. Debu has

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start