Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Please state which language you're working in when raising issues.
Your Prolog solution is buggy, so I'm closing this īssue as it's not a problem with the kata itself.
To fix your solution, consider what would happen if I called
solution(-1, R)
the tests keep failing even if it's the program is working even for 7 seven digits numbers