Can someone help me with the logic for this question.
Vivek and Factors
Hello @nachiketn
here simple brute force sol will work, Find all the primes till 10^5 using seive. Now find sum of factors of numbers using prime numbers and (Mathematical formula sum of factors) Now for every test case simply check if it exist in array or not.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.