![]() |
VOOZH | about |
Given an integer N. The task is to find the Nth prime number.
Examples:
Input : 5
Output : 11Input : 16
Output : 53Input : 1049
Output : 8377
Approach:
Below is the implementation of the above approach:
5th prime number is 11 16th prime number is 53 1049th prime number is 8377
Another approach :
Below is the implementation of the above approach :
5th prime number is : 11 7th prime number is : 17 10th prime number is : 29