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 was wondering the same thing...
This comment is hidden because it contains spoiler information about the solution
absolute troll decided to 1 index that particular test
It's a possibility. Now you can see comparing with other solutions that it was not the only one.
This comment is hidden because it contains spoiler information about the solution
A single online research will give you the answer. There are advanced techniques faster than a sieve of Erastothenes, but you don't need them to solve this kata. Actually you don't even need a sieve. Just think and try to find a method suited for your purpose. What's the purpose of a sieve? Is it actually what you need? If you think it is (it may be, it may not be), do you use it optimally?
Is there some faster way than using a Sieve of Eratosthenes to find all possible primes up to the largest number and checking against all of those?
You should really explain what an "ij" is.
One (or more numbers when they're equal it's a plateau) greater than their neighbors on both sides.
What's the actual definition of a "peak"?