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.
This comment is hidden because it contains spoiler information about the solution
I removed it. This precision doesn't make sense, if we suppose people might not know what even digit is, we should give the whole list of them, but it seems too much (if someone doesn't have clear what an even number is, he can just check it).
Thanks for presenting a valid solution to the issue
Written like that, you can either think it is an even number or that it is an odd number but you shouldn't count it, which is wrong. Either say it is an even number or mention the odd digits if you need clarification.
"Among the general public, the parity of zero can be a source of confusion."
So once again I submit, "so people don't accidentally count 0 as an odd digit and fail to understand why their solution isn't working?"
0 is an even number, hence the question.
So people don't accidentally count 0 as an odd digit and fail to understand why their solution isn't working?
This comment is hidden because it contains spoiler information about the solution
This is the problem with typeless js ðŸ˜
Hi, were you able to train in recursion somehow? I also feel a little lost
I went beyond that...
my solution wasn't quite as elegant as this one, but I had some shared elements. I fiddled with some paper drawings of diamonds and counted spaces, asterisks, rows, etc. to help me identify patterns in the relationships between numbers.
No, you're not sir ...
I've made a small addition to the description that clarifies how to pick dominant primes. In the range 6..20, they are 11 and 17.
I'm also stumped on this one... I have a log with the index number that is prime that index again followed by the number that is in that position (index - 1). The very end of the input is the sum of these numbers. What am I missing here?
primes index is 2
index = 2 2 223
index = 3 3 227
index = 5 5 233
index = 7 7 241
index = 11 11 269
index = 13 13 277
index = 17 17 307
index = 19 19 313
index = 23 23 347
index = 29 29 379
index = 31 31 389
index = 37 37 431
index = 41 41 449
index = 43 43 461
index = 47 47 487
index = 53 53 523
index = 59 59 571
index = 61 61 587
index = 67 67 617
index = 71 71 643
index = 73 73 653
index = 79 79 691
index = 83 83 727
index = 89 89 761
index = 97 97 823
index = 101 101 853
index = 103 103 859
index = 107 107 883
index = 109 109 907
index = 113 113 937
index = 127 127 1031
index = 131 131 1051
index = 137 137 1093
index = 139 139 1103
index = 149 149 1187
index = 151 151 1201
index = 157 157 1237
index = 163 163 1289
index = 167 167 1303
index = 173 173 1367
index = 179 179 1427
index = 181 181 1433
index = 191 191 1489
index = 193 193 1499
index = 197 197 1543
index = 199 199 1553
index = 211 211 1621
index = 223 223 1723
index = 227 227 1753
index = 229 229 1777
index = 233 233 1801
index = 239 239 1867
index = 241 241 1873
index = 251 251 1951
51240
Loading more items...