Pari N Prime
CodeChefOpen on judge ↗
Pari loves prime numbers, in her free time she likes to calculate the sum of all distinct prime factors of a given number. But her elder sister asked her to find the same on a given range and then add all the sums. Since Pari is busy these days, she asks for your help. ###Input - First line will contain $T$, number of Test Cases. - Each Test case contains of a single line of input, two space sepa
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