• MuchPineapples
        link
        8
        edit-2
        1 year ago

        This is the way. Modulo takes too long to compute, bitwise compare should be a lot faster.

        return !(number & 0x1);