Using C, Write a program that finds the 12th prime number (starting from 2). -Th
ID: 3641743 • Letter: U
Question
Using C, Write a program that finds the 12th prime number (starting from 2).-The main() must call a function.
-The function's name must by nPrime.
-nPrime() does not return a value using the return statement.
Note that a void function can call return; to terminate itself. So, a void function can call return; to give control back to the function that called it.
You may find useful to use the break statement as well.
-nPrime must not print anything. main() should do all the printing.
-You cannot use global variables.
-Use pointers to implement your program.
-nPrime must be generic enough to also return the 100th prime number or the 78th prime number, or the nth prime number.