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 a global variable in c?

0 Answers  


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

0 Answers   Wilco,


When we use void main and int main?

0 Answers  


What is the difference between the = symbol and == symbol?

0 Answers  


sum of two integers values only other then integer it should print invalid input.

1 Answers  






Explain what is a static function?

0 Answers  


simple program for virtual function?

1 Answers  


how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?

0 Answers  


Is using exit() the same as using return?

0 Answers  


Difference between Shallow copy and Deep copy?

0 Answers  


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

0 Answers  


I need to take a sentence from input and sort the words alphabetically using the C programming language. Note: This is C not C++. qsort and strtok not allowed

4 Answers   Aspire,


Categories