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

Write a program to reverse a given number in c?

0 Answers  


What is the code in while loop that returns the output of given code?

0 Answers  


The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

0 Answers   Microsoft,


what are brk, sbrk?

1 Answers   Oracle,


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

0 Answers  






What is "Hungarian Notation"?

0 Answers   Celstream,


write a program in c language that uses function to locate and return the smallest and largest integers in an array,number and their position in the array. it should also find and return the range of the numbers , that is , the difference between the largest number and the smallest.

1 Answers  


What is putchar() function?

0 Answers  


Under what circumstances does a name clash occur?

0 Answers   InterGraph,


simple program of graphics and their output display

0 Answers   Elysium,


what is the output of below pgm? void main() { int i=0; if(i) printf("pass"); else printf("fail"); }

4 Answers  


What's wrong with the call "fopen ("c:\newdir\file.dat", "r")"?

1 Answers  


Categories