Please anyone tell me coding to print prime numbers from 1 to
5000 in c#....

Answer Posted / guest

int i=0;
for(i=0;i<=5000;i++)
console.writeline(i);

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

One boy has to climb steps. He can climb 1 or 2 steps at a time. Write a function that will returns number of way a boy can climb the steps. Int WaytoSteps(int n) (eg:- suppose number of steps is n=4 ,the function will return 5 (one-one-one-one ,one-one-two, one-two-one-,two-one-one, two-two)

2990


What is easiest way to get the PL/i compiler,I didn't have found the compiler in my library. Is there any extra cost if we want to access the PL/1 programs?Actually we r having Mainframe rented training Ids

1613


what is the extension of SPDS Dynamic cluster tables?

1616


Which design patterns have you used?

1544


Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming

11113






what is meaning of MDM in sap?let me know that meaning

1677


Is anyone has done the ASP.NET MVC4 workshop course(2 days) from Peers Technologies. Let me know. I need to talk before joining ASP.NET MVC4 training at peers, Hyderabad.

1546


Write a program to show polymorphism.

695


Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 2 numbers. Find the missing numbers.

781


how can i split string in a textbox in windows appication using C#.net

2207


HOW TO FIND NUMBER OF TWOS IN N!(N FACTORIAL)??

1777


what is session state?

1514


how to hide prompts

1455


in teradata level primary in table level allows duplicates why?

1639


Tips for blog integration by www.esteemwebsolutions.com. Can Any body suggest me to how to make wonderful questions on web integration..

1640