how to check if a number is prime or not c# code example
Example: 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
}
if (intNumber % 2 == 0)
{
// this number is prime
}
else
{
// this number is not prime
}