Ad
  • Default User Avatar

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

  • Custom User Avatar

    Hi,

    Prime numbers have nothing to do with it. The minimum should be just the sum of all numbers in the sequence ;)

  • Default User Avatar

    try to understand the patter for the sample case,its very easy just spend some it analyzing it

  • Custom User Avatar

    reasonning/pen and paper.

    ;)

  • Custom User Avatar

    To be honest you only need to understand basic vector addition and multiplication, so I suggest to start with that. For some visualization, I can link you something which I created alongside with this kata - click. It's randomized, so whenever you refresh the page, the result will be different. Maybe this will help you see it a little better. I initially intended to link it in the description, but it seemed like an overkill. If you don't want to spoil yourself the solution, then don't look into it's source code (;