SCHOOL OF CODE BUILDERS
Learn To CODE. Become A DEVELOPER.
Pages
HOME
DATA STRUCTURES
STRINGS
ARRAYS
MATRIX
BINARY TREES
LINKED LIST
STACK
QUEUE
SORTING
SEARCHING
C
PYTHON
PSEUDOCODE
CONTEST PROBLEMS
ALGORITHMS
PATTERNS
PHP
C PUZZLES
C INTERVIEW QUESTIONS
JAVA
C++
HASHING
RECURSION
BASIC C PROGRAMS
TCS-CODEVITA
FACEBOOK
CONTACT US
C program to find nth prime number
C program to find nth prime number
Input:
Enter the value of n to find nth prime:
19999
Output:
224729
Implementation:
#include
#include
#include
#include
#include
#define MAX 1000000 int hash[MAX]={0}; void sethash(int n) { int i; for(i=1;i*n
PREVIOUS
NEXT
HOME