Greetings,
I was thinking of a problem to solve in order to practise prolog.
Problem: There is a given number N, I would like to generate list of primes that are (<=N).
So i wrote a few predicats in order to solve this but i dont know how to put them together, everything i tried failed.
Here...
Greetings,
This is my first post here so I would like to greet you all.
I started learning prolog and I must admit I'm having problems since its a totally different idea of programming, totally different from imperative type of thinking.
Here is my idea, actually i made an example i would like...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.