Getting wrong ans for all

Can you please tell me what is wrong with my approach:
I tried to count all the unique prime numbers in the set and tested them if they are even or not.

other primes will also generate if you divide a number by a prime you have to consider all those prime you are considering only initial primes. read my code for details…

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.

1 Like