3 # nsieve-bits N (N = 9 for shootout)
5 # modified by Joshua Isom
6 # modified by Karl Forner to accept shootout default value of N=2
9 # set bits - this might be cheating see nsieve-bits-2 for resetting bits
36 .local int argc, i, j, N, M, count
41 if argc == 1 goto default
45 flags = new 'FixedBooleanArray'
56 count = primes_in_range(M, flags)
57 $P0 = new 'FixedIntegerArray'
61 $S0 = sprintf "Primes up to %8u %8u\n", $P0
72 # vim: expandtab shiftwidth=4: