bool canBeDividedBy3(int nextBit)
{
static int remainder = 0;
remainder = (remainder * 2 + nextBit) % 3;
return (remainder == 0);
};
bool canBeDividedBy3(int nextBit)
{
static int remainder = 0;
remainder = (remainder * 2 + nextBit) % 3;
return (remainder == 0);
};