Find if number is prime - C#
Join the DZone community and get the full member experience.Join For Free
Find if number is prime - C#public bool IsPrime(int num)
bool _isPrime = true;
if (num % 2 == 0) return false;
for (int i = 3; i
Opinions expressed by DZone contributors are their own.