C Programming and Technical Programming Output

Write a program to print the nth prime number after a given number m.

Example 1: Given prime number m=3 and n=5. The program should print the 5th prime number afer 3
Given input
3
5
Expected output
17

Read Solution (Total 5)

C Other Question

PRGRAMMING IN C integer i=0,j
while( i < 2 )
{
j = 0;
while ( j <= 3*i )
{
print j
print blank space
j = j + 3
}
print end-of-line //takes the cursor to the next line
i = i + 1
}
What will be the output of the program?