Ad
  • Default User Avatar

    The kyu are given by a moderator according to the given average but not by the author.

  • Custom User Avatar

    You're welcome. Thanks for your feddback and time solving this kata.

  • Custom User Avatar

    Yes sorry. 14 in the amount of odd primes below 80. You have a global variable in your code. Could you refactor it having only local variables and see if the problem persists?

  • Custom User Avatar

    Hi karapetyan. I tested your code in ruby. For an upper bound 80:

    TRUE PRIMES: [3, 5, 7, 11, 13, 17, 19, 31, 37, 53, 59, 71, 73, 79]

    and your result is: [14, 79, 97]

    14 does not fulfil the required property for this kata

    Hope that you can fix the problem of your code.