PDA

View Full Version : Prolog Questions


student
03-31-2005, 12:15 AM
Hi, I have just pick up this language and still learning the basics of it. I happened to came across a prolog question:

"To get started We need to assert primes([2]).Write a predicate start that removes any existing primes and leaves prolog in a state such that primes(X) returns X = [2].

Can anyone enlighten me? Thanks!