In this problem you are to write a program that will cut
some number of prime numbers from the list of prime numbers
between 1 and N.Your program will read in a number N;
determine the list of prime numbers between 1 and N; and
print the C*2 prime numbers from the center of the list if
there are an even number of prime numbers or (C*2)-1 prime
numbers from the center of the list if there are an odd
number of prime numbers in the list.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What is masking?

0 Answers  


What is floating point constants?

0 Answers  


What is the difference between volatile and const volatile?

0 Answers  


#define swap1(a,b) a=a+b;b=a-b;a=a-b; main() { int x=5,y=10; swap1(x,y); printf("%d %d\n",x,y); swap2(x,y); printf("%d %d\n",x,y); } int swap2(int a,int b) { int temp; temp=a; b=a; a=temp; return; } what are the outputs?

4 Answers   Ramco,


What is a lookup table in c?

0 Answers  






What does the function toupper() do?

0 Answers  


What are the applications of c language?

0 Answers  


Why string is used in c?

0 Answers  


Explain the array representation of a binary tree in C.

0 Answers   Genpact,


How can I call fortran?

0 Answers  


What is the use of a static variable in c?

0 Answers  


what is the difference between strcpy() and memcpy() function?

2 Answers  


Categories