3 comparisons (x%3, x%5, flag)