Sieve is the machine that computes prime numbers using the Eratosthenes sieve.
public class Sieve extends NrpMachine { public Sieve() { new IntValues(this,"c0",2); new Sift(this,"c0","c1"); new Out(this,"c1"); } public static void main (String argv[]) { Sieve mach = new Sieve(); for (;;){ mach.activation(mach); } } }