C#: Find the prime numbers within a range of numbers
Write a program in C# Sharp to find prime numbers within a range of numbers.
Visual Presentation:

Sample Solution:
C# Sharp Code:
Sample Output:
Find the prime numbers within a range of numbers: --------------------------------------------------- Input starting number of range: 1 Input ending number of range : 50 The prime numbers between 1 and 50 are : 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47
Flowchart:

C# Sharp Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a C# Sharp Program to display by Pascal's triangle
Next: Write a program in C# Sharp to display the first n terms of Fibonacci series.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.