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.
For the last one: you forgot to count the substring 35.
1357
Counting 9 too: 1, 3, 5, 7, 13, 57, 135, 357, 1357
It should return 9, right?
But the test expects 10
The question says to count the ODD-NUMBERED substrings. 4 and 134 are not odd-numbers and should not be included.
"For example, in the case of "1341", they are 1, 1, 3, 13, 41, 341, 1341, a total of 7 numbers."
I'm counting 9: 1, 1, 3, 4, 13, 41, 134, 341, 1341
What am I doing wrong?
Probably misreading the logs, read this: https://docs.codewars.com/training/troubleshooting/#print-input the tests are fine and the one with 5 as input expects true, not false.
For example the number 5, in the instructions specifies that is true but then the tests "expected true to equal false". It works if I run it on my machine with all the same numbers that the test does not pass, what am I doing wrong?
https://i.ibb.co/HX5trnC/6-twin-prime.jpg