Cant understand the question

explain the question

In this question, we are given that:
The total cost was a number upto which there are n prime numbers (starting from 2).
So, we need to find the minimum number upto which n prime numbers exist (2 being the first prime number).

For the Sample Input:
2
5
1

The Outputs are:
11
2

In first test case, 11 is the smallest number upto which we have 5 prime numbers(2,3,5,7,11)

In second test case, 2 is the smallest number upto which we have 1prime number (2)

i still didn’t understand…!!

Main logic behind the question is that you need to find the nth prime number starting from 2.

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.