Hey i am not able to understand to op desired prime position


according to hint i did prime sieve but im not able to perform display of ith prime no for i input help me modify the code.

Modified Code

i hope this help
if you have doubt in any part feel free to ask

if your doubt is resolved mark it as resolved from your doubt section inside your course

ok i understood i completely forgot that we can create vector and store prime nos.

thank you and sorry for this silly mistake

but their is one problem its showing run error

got it solved thankk you