https://online.codingblocks.com/player/20645/content/4627/4702

https://online.codingblocks.com/player/20645/content/4627/4702

Not able to understand the problem statement :
specifically, this line can you please tell me what does it mean exactly " The total cost was a number up to which there are n prime numbers "

@Deepak388 hey deepak in this question you have to find nth prime number. the motto of the question is to teach the idea of sieve of eratosthenes algorithm which is very famous and most asked in the interview if you did this question without applying this algorithm you always gets tle ie time limit exceed.
hope this info helps you if you have any confusion feel free to ask.

1 Like