Since my Prolog is not amazing it's very likely that my solutions will be inefficient, inelegant or both.
Problems will come as I fancy doing them, along with some comments. Feel free to ignore them.
- It's a language I kind of like
- It's a language that makes sense
- It's a language that makes one strive for maximum elegance and clarity
Why Project Euler?
- The problems are challenging and often interesting
- You have to solve the problem and then implement your plan in code
- Solving the problems as written is fine, solving the general case is better
You can clone or download my repository and play with it after installing something like SWI-Prolog, or you can try SWISH and run my code directly from your browser!
Click the link and run the proposed goal:
Problem 1 | Problem 2 | Problem 3 | Problem 5 | Problem 6 | Problem 9 | Problem 10 |
---|---|---|---|---|---|---|
Problem 14 | Problem 29 |