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.
I might be dumb, but I didn't find a single helpful tip here when I stuck on optimization. So I'll leave one that's probably a bit too obvious: 248155780267521, for example, is a pretty big damn number, but the digits aren't that great, right? The reverse approach, it seems, should do the trick.
A great kata!
оно ж не простое
всё так, брат
After spending MUCH more time than I should've trying to optimize the code, I wonder why I didn't decide to just solve the equation in the first place, instead of using two loops with the same damn equation in the core. A great kata, actually