Ad
  • Default User Avatar

    I was wondering the same thing...

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    absolute troll decided to 1 index that particular test

  • Custom User Avatar

    It's a possibility. Now you can see comparing with other solutions that it was not the only one.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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?

  • Custom User Avatar

    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?

  • Custom User Avatar

    You should really explain what an "ij" is.

  • Custom User Avatar

    One (or more numbers when they're equal it's a plateau) greater than their neighbors on both sides.

  • Custom User Avatar

    What's the actual definition of a "peak"?