Sort:  

Hi, I posted my prolog solution to the problem as promised 😼
https://steemit.com/contest/@armandocat/mathematics-programming-competition-5-prolog-solution

Hope you like it! If you can, please help spread my post to others. I'd like to do this even for future contents if you think this could be a good idea for the people that read and try out these problems.

Thanks
Armando
🐾

Great thanks! I will include your solution in my next post. A very well-written post!