Prime love
CodeChefOpen on judge ↗
Prabal loves primes. His maths teacher found his love (which was at its prime) and gave him a question. Please help Prabal to prove his love. We are given a number $n$, We have to find the nth prime number.And we have to do it, fast. real fast. Let's see how fast you can do. ###INPUT: First line contains $t$, number of test cases Second line contains $n$. ###OUTPUT: $t$ lines containing the $nth
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start