student
03-30-2005, 08:23 PM
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!
"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!