Found some code online I was looking at to solve a problem, and I'm not exactly sure what it's doing where it says "(candidate & 1) == 0". candidate is an int.
if ((candidate & 1) == 0)
{
if (candidate == 2)
{
return true;
}
else
{
return false;
}
}