:: Home Page
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
Categories >> Software >> Programming Languages >> C


Question write the program for prime numbers?
 Question Asked At :: tcs, write a "c" program to count no of prime number upto 10, write a program to print all prime numbers from an array, assenture, infosys, aptech, 3.write a program in c to read n numbers in an array, the user should be able to search a particular number i
 Question Submitted By :: aaaa
I also faced this Question!!    
Answer Posted By  
This program is to check a given number is prime or not
(or) list the prime numbers in a given no.

For example, the user enter the no is 50. the program is
list the prime numbers in 50.

Is This Answer Correct ?    402 Yes 262 No

View All Answers
Please Help Members By Posting Answers For Below Questions
 Question Views   Select
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview . 620
what is the different bitween abap and abap-hr? 488
c program to compute AREA under integral 361
how can make variable not in registers 444
shorting algorithmS 484
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default??? 304
what is the structure pointer? 384
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list) 369
Write the test cases for checking a variable having value in range -10.0 to +10.0? 470
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values.  The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding. 868
program to convert a integer to string in c language' 498
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot... 284
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon 3253
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee. 2418
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } } 400
E-Mail New Answers        Answer Selected Questions