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
What are control structures? What are the different types?
#ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); }
what is used instead of pointers in java than c?
You have an int array with n elements and a structure with three int members. ie struct No { unsigned int no1; unsigned int no2; unsigned int no3; }; Point1.Lets say 1 byte in the array element is represented like this - 1st 3 bits from LSB is one number, next 2 bits are 2nd no and last 3 bits are 3rd no. Now write a function, struct No* ExtractNos(unsigned int *, int count) which extracts each byte from array and converts LSByte in the order mentioned in point1.and save it the structure no1, no2, no3. in the function struct No* ExtractNos(unsigned int *, int count), first parameter points to the base address of array and second parameter says the no of elements in the array. For example: if your array LSB is Hex F7 then result no1 = 7, no2 = 2, no3 = 7. In the same way convert all the elements from the array and save the result in array of structure.
Difference between linking and loading?
why effort estimation is important?
List the variables are used for writing doubly linked list program.
Explain #pragma in C.
Explain what standard functions are available to manipulate strings?
what is data structure.in linear and non linear data structures which one is better?Explain
Between macros and functions,which is better to use and why?
I came across some code that puts a (void) cast before each call to printf. Why?