2 # Copyright (C) 2006-2009, Parrot Foundation.
5 # ./parrot -R jit nsieve.pir N (N = 9 for shootout)
7 # modified by Joshua Isom
8 # modified by Karl Forner to accept shootout default value of N=2
38 .local int argc, i, j, N, M, count
40 flags = new 'FixedBooleanArray'
43 if argc == 1 goto default
57 count = primes_in_range(M, flags)
58 $P0 = new 'FixedIntegerArray'
62 $S0 = sprintf "Primes up to %8u %8u\n", $P0
73 # vim: expandtab shiftwidth=4 ft=pir: