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.
5 years later you are 1 kyu lol
I don't get it
oh thanks bro )
One prime neighbour is enough.
17
should returntrue
. The test is correct.This comment is hidden because it contains spoiler information about the solution
It is quite possible to print inputs. To show custom failure messages, you need to wrap the existing or define your own custom
shouldBe
. As far as I'm concerned, printing input is on solver. This is not8kyu
.In this fork, example tests are the same between Example Testing and Submit Testing and are visible in Example Tests ( I do that for exactly that reason ); random tests do show the generated value along with the failure message. If you pass Example Testing, you will never see a failure message without inputs in Submit Testing.
Closing.
Haskell: [this fork] has better testing.
Haskell: this fork has better testing.
Updated Haskell translation
Your code works for values up to
100
. Testing goes up to I think1 000 000
.( Shouldn't that be
range(2,arg)
then ?!? [ And even that is highly suboptimal. ] )This comment is hidden because it contains spoiler information about the solution
my code works but cannot pass validation.
Not an
Issue
. Closing.Your code has a bug. See the Troubeshooting Guide in Documentation -> Training. Have you considered printing inputs with
console.log
?This comment is hidden because it contains spoiler information about the solution