Write a program to display all the prime nos from 1 to
1000000, your code should not take time more than a minute
to display all the nos.


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

Post New Answer

More C Interview Questions

What is wrong in this statement? scanf(“%d”,whatnumber);

0 Answers  


How to write c functions that modify head pointer of a linked list?

0 Answers  


What is the difference between fread buffer() and fwrite buffer()?

0 Answers  


whenever a question is posted in a particular category in allinterview.com, Is there any facility to receive an indication mail. For eg: I need to receive an indication email, whenever a question is posted under the category “C Langauage”.

1 Answers  


how to write palindrome program?

3 Answers  






What is fflush() function?

0 Answers  


Why can’t constant values be used to define an array’s initial size?

0 Answers  


If I have a char * variable pointing to the name of a function ..

0 Answers  


What is your stream meaning?

0 Answers  


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

0 Answers  


Why is c so powerful?

0 Answers  


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

0 Answers  


Categories