2 # Copyright (C) 2005-2009, Parrot Foundation.
5 # ./parrot -R jit nsieve-bits.pir N (N = 9 for shootout)
7 # modified by Joshua Isom
8 # modified by Karl Forner to accept shootout default value of N=2
11 # set bits - this might be cheating see nsieve-bits-2 for resetting bits
38 .local int argc, i, j, N, M, count
43 if argc == 1 goto default
47 flags = new 'FixedBooleanArray'
58 count = primes_in_range(M, flags)
59 $P0 = new 'FixedIntegerArray'
63 $S0 = sprintf "Primes up to %8u %8u\n", $P0
74 # vim: expandtab shiftwidth=4 ft=pir: