This updates the examples to showcase the scope of anthem’s feature set. New examples are added concerning placeholders, hiding predicates, and simplifications related to integer variables.
5 lines
96 B
Plaintext
5 lines
96 B
Plaintext
composite(I * J) :- I = 2..n, J = 2..n.
|
|
prime(N) :- N = 2..n, not composite(N).
|
|
|
|
#show prime/1.
|