Play with Prime
CodeChefOpen on judge ↗
Ritesh loves playing with numbers. One day his friend Ramakant asked him a problem to find descending order of a given unsorted array of natural number after finding the sum of all [prime factors](https://en.wikipedia.org/wiki/Table_of_prime_factors) for each element. Ritesh is good in mathematics, but his programming skill is weak. Let's help Ritesh. ###Input: - First line will contain $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.
Sign in to chat with the tutor and save your progress.
Sign in to start