← All problemsSign in

Son of String

Suppose we have given a string of digits S: 4563573640980834232 Now this string is called the parent string. Now from this parent string we have to generate the son string ( which will be our output). Son is generated by taking the LCM (lowest common multiple) of the digits who are placed at positions represented by the prime numbers in which the starting index of the string is taken as 1 and t

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