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.
should be 7kyu
Lua translation!
it's so easy for me. I'm very happy to improve my logic in javascript with codewars
This kata requires no optimization whatsoever.
Read about properties of prime numbers, filter the possible divisors and their upper-bounds instead of doing an exponential-complexity computation.
All languages now have random tests
1 and 2
one question. I was looking about the join and best practices. But I have not found any info.
Why is not a best practice the use of join? do you have a link or a little explanation about that, pls :)
Odd that you have to flatten the triangle, but I guess it's a diferential.
Okkk dfhwze.
Now is working ok all the time.
Thaaaaanksss
Try again now. I lower limit even more. There's probably a pic 9(3) that needs to be pic 9(4) somewhere in the test setup.
dfhwze, with your fix it is now working much better.
Now, the only error is when the input n is greater than 44, which must be truncating something in the tests
For example: Testing n = 45 , it returns Incorrect length Expected 35, but got 1035.
The correct one is mine (1035) but it must be truncating 3 positions and that is why it does not go beyond 999 and says that the correct thing is 035 instead of 1035
This translation is unmanageable. I've fixed the ref sol, but had to lower random test cases. If you want more random test cases, try to get in touch with original author of the translation on Discord.
I'll try to fix it, but I haven't touched COBOL in ages.
Ups.
I am sorry. It is COBOL.
I can't see what is the language you have problems with? Seeing your code would also help.
Loading more items...