Jack and Jones
CodeChefOpen on judge ↗
Jack loves to play with numbers.One day he discovered that there's something called magic_values for a number. Magic_value of any number is sum of digit_sum of all unique prime factors(greater than 1) of a given number (For more clarification, see the explanation). Jack challenged his friend Jones to solve a problem based on magic_value of numbers. In this problem Jones have to count sum of magic_
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.
Sign in to chat with the tutor and save your progress.
Sign in to start