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.
This comment is hidden because it contains spoiler information about the solution
Most of the answers I've seen use a variation of the sum function, which can be very slow with large numbers. Anything with a difference of 100,000,000 is noticeable, and as you add the digits the processign time ramps up.
I endeavoured to achieve the result via calculation using triangular numbers. It can handle numbers of any size.
This comment is hidden because it contains spoiler information about the solution