Write a C# program to check a number is prime or not?
Write a C# program to check a number is prime or not?
I completed my post-graduation in 2013 in the engineering field. Engineering is the application of science and math to solve problems. Engineers figure out how things work and find practical uses for scientific discoveries. Scientists and inventors often get the credit for innovations that advance the human condition, but it is engineers who are instrumental in making those innovations available to the world. I love pet animals such as dogs, cats, etc.
Ashutosh Kumar Verma
20-Nov-2021Prime Number:
A prime number is a number that divided by self or 1 and no other number can divide that is called a prime number. 1 is not a prime number because there is must be divided by two number that are 1 and that number.
Program:
Output:
Print all prime number between 1 to 100.
Program:
Output: