Ad
  • Custom User Avatar

    Apologies, the individual who translated the Kata into Javascript introduced the problem, and it slipped by when I reviewed it. The issue should now be resolved.

  • Custom User Avatar

    After reviewing the answers I can say, with a high degree of certainty, that sexy_primes(21,27) and sexy_primes(16,22) returns false ie. there is a method in the test casses (which we will call method_x for now) which determines whether or not your answer is correct by doing "Test.assert_equals(sexy_primes(x,y), method_x(x,y))". When testing method_x(21,27) and method_x(16,22), the method returned False for both the Javascript and Python languages.

  • Custom User Avatar

    I reorganized both the python and javascript solutions such that the true_tests and false_tests arrays are combined and shuffled before testing to mitigate hardcoded solutions. This should have fixed the issue.

    Marking as resolved.

  • Custom User Avatar

    Tests should be randomized in order of pass or fail or else hardcoded solutions are still very possible! :)

  • Custom User Avatar

    Some test outputs are invalid (21,27 and 16,22 in my case) though the program expects "true" output.