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

Differevce between arrays and array builders?

1649


A good website has the following conditions It should be interactive. It should contain at least 20 images. Title cannot be null and should contain at least 10 letters other than spaces and hyphen (-). The keywords should contain atleast three among the following list : "design", "Graphics", "lovely", "beautiful", "amazing" and "mesmerising" Write a method: boolean isGoodWebsite(boolean isInteractive, int numOfImages, String title,String keywords[]) isInteractive whether the site is interactive or not numOfImages Number of images on the website title Title of the website keywords Array of keywords in the website.

1786


what is the meaning of without standing arrears?

9864


Write a pseudo code to evaluate a number to any base given (2...16) based on the input. Number greater than 9 should be given as A-F for 10-15.

2085


How will you prove that java swing is multithreaded?

1699






10.Define filters,binary to hexadecimal,hexadecimal to decimal?

1522


what are all the validation we need to perform in data stage?

1950


what is session state?

1528


can we use commit,rollback in triggers and how?

1503


How to get the index of the clicked field in reports in ABAP?

1166


When we use Windows authentication mode

1580


What is the first message line that any language learning prints on the screen? and why?

1685


what is the difference between an OS(operating system) and Framework?

1525


what is the use of occurs 10 or (any number) in the internal table declaration with header line.

1472


Is class is a abstract datatype in java?

1455