Skip to content

My Prolog solutions to Project Euler problems

License

Notifications You must be signed in to change notification settings

fp555/euler-prolog

Repository files navigation

Project Euler problems in Prolog Problems Test Suite

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.

Why Prolog?

  • 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
  • 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

Do you want to try Prolog?

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!

Preview links

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

About

My Prolog solutions to Project Euler problems

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages