@numba.njit(parallel=True)
def _advance(a, c):
    for idx in numba.prange(len(a)):
        ci = c[idx]
        if a[idx]:
            if (ci not in range(2, 4)):
                a[idx] = False
        elif (ci == 3):
            a[idx] = True
@numba.njit(parallel=True)
def _advance(a, c):
    for idx in numba.prange(len(a)):
        ci = c[idx]
        if a[idx]:
            if (ci not in range(2, 4)):
                a[idx] = False
        elif (ci == 3):
            a[idx] = True