← All problemsSign in

Horcrux Number

Harry potter wants to kill voldemort. Through some sources harry potter finds out that voldemort can be defeated by hunting down the horcruxes. Now harry wants your help to find out the sum of horcruxes. A number is said to be horcrux if the number can be written as sum of the nth power of each digit. Example for N=4 1634 = 14 + 64 + 34 + 44 8208 = 84 + 24 + 04 + 84 9474 = 94 + 44 + 74 + 44

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