Display program code

primes3.pl : Prime numbers (from "The Art of Prolog")
Generate prime numbers by Sieve of Eratosthenes.

How to use:
For an integer N, you enter primes(N,L),
and get for L the list of all primes P1,P2,..,Pm up to N.

See also:
L Sterling, E Shapiro. The Art of Prolog: Advanced Programming Techniques. MIT Press, 1986.

Program: Change the code, then submit!

Console: Enter query or select example from below, then submit and wait for answer!

Select example query: 

CHR
WebCHR help - CHR Website - (c) Copyrights Martin Kaeser Uni Ulm 2007