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.
not enough random tests.
Wrong solutions in base 19:
14044103, 266840927, 1830261112811, 1830261894751, 34774961186201 ---(base 19)---> 5CEA66, 5CEAEA6, 5CEAE42AE4, 5CEAEA2AEI, 5CEAE42GIE4
BUT
The heads of sequences... OK.
Dear themanofthecat,
the solution of this kata seems to have an issue:
for base 16, it requires number 2047 in the solution-list.
My solution list ( without this number ) is rejected.
But 2047 ( = 89 * 23 ) is no prime.
i guess the issue is caused by an underlying issue of the fast_is_prime-function procvided by you.
fast_is_prime(2047) = True
There is a similar issue for base 19:
14044103 (5CEA66) => 739163 (5CEA6) => 38903 (5CEA) => 2047 (5CE)
This comment is hidden because it contains spoiler information about the solution
No it's not.
However including all prime numbers in list allows to randomize tests a little more by asking for random ranges of prime sequence for a given base.
Iterative vs recursive only matters if you want to generate prime number list in order (BFS vs. DFS).
You should add in description that order doesn't matter.
Hey, I'd just like to know if such a shape is a valid input:
This comment is hidden because it contains spoiler information about the solution
I would suggest to make the task actually return all right-truncable primes, not just heads of sequences. IMHO, it just complicates things a little bit.
Believe I've fixed the issues, thanks for correcting me
Sorry about that haha, I meant to change that in the hidden test cases
This is my first kata and there's not much in the way of instruction for this that I found, so thanks for this
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...