tic
N = 10000000 - 1;

total = 0;
for i=1:N
    if mod(i,1e6)==0
        fprintf("%d\n",i);
    end
%    if end89_slow(i)
    if end89_fast(i)
        total = total + 1;
    end
end
fprintf("time: %.3f sec, the answer is %d\n", toc, total);


