I haven't checked the spoiler. The brute force method is probably to just call incr multiple times.
I wonder if there's anything to do with the caching function to get better performance though. Will need to think about it more.
I wonder if there's anything to do with the caching function to get better performance though. Will need to think about it more.