my code is giving 3 wrong answers what is wrong with this code
Wrong answer iijihihujbn
@mayank10
You just had to calculate number of primes till N
Let’s say it is X
Then print 2^( X - 1 )
You can see this link for further detail of implementation Please help me with lets this question i am clueless
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.
i used the big integer class and what is wrong with my approach link is https://ide.codingblocks.com/s/223543
@mayank10
Your code will give TLE if not WA because string multiplication has very high time complexity