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.
Max (or near max) indexes should be tested for all bases, otherwise invalid solutions can pass, that don't check high enough primes (e.g. base 30, k = 150)
If you decided to use type annotations, please, be consistent and do it for the function return type as well.
The description must use "nonempty substring", instead of just "substring". If we allow an empty substring, we usually assume it's zero when converted to an integer, therefore no numbers satisfy the condition, because every number contains empty substring.
I think there should be code length limitation for the problem (to prevent hard-coding).
This comment is hidden because it contains spoiler information about the solution