Magic numbers
CodeChefOpen on judge ↗
PROBLEM DESCRIPTION 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 .Jack challenged his friends to solve a problem based on magic_value of numbers. In this problem they have to count sum of magic_values for all numbers from L
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