With monday.comâ€™s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.
private bool isPrime(int num)
{
if (num == 0 || num == 1)
return false;
for (int j = 2; j < num; j++)
{
if (num % j == 0) return false;
}else{
for (int i= 2; j < Math.Sqrt(num); i++)
if (num % j == 0) return false;
}
return true;
}
If you are experiencing a similar issue, please ask a related question
Join the community of 500,000 technology professionals and ask your questions.