Answers for "how to check if a number is prime or not c#"

C#
-1

how to check if a number is prime or not c#

if (intNumber % 2 == 0)
{
	// this number is prime
}
else
{
	// this number is not prime 
}
Posted by: Guest on May-06-2021

Code answers related to "how to check if a number is prime or not c#"

C# Answers by Framework

Browse Popular Code Answers by Language