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.
C++ translation published
Indeed, there was just "primes" in JS. Changed it to semiprimes
I wrote the JS translation and used the exact same batch suite names as in Python. The
~
stands for prime and almost-primes.maybe it is different between languages
in JS names of random test are:
Small Primes
Small Composites
Big Composites
~32bit Primes
~64bit Primes
If i am not wrong, that section called "~64bit semiprimes". Number is semiprime if it has two distinct prime factors.
Tests group named '64-bit primes' provide composite numbers as well. So maybe in should be named '64-bit numbers' or smth?
(maybe for '32-bit' thats also a case)
Awesome Kata, it was really fun to work this one out!
yes,
100 000
is quite far from infinity =)Unless you would do some tests where you don't get ALL values, but only
take(x)
and you put some exceptions or sleeps further on the sequence. But do we want to push it that far ..Of course it works. Because testing is necessarily finite.
If you think setting
Infinity
to100 000
won't come back to bite you some day, have at it. I think you actually know better.I think this is not an intended soution, just tried if it works and it worked
This comment is hidden because it contains spoiler information about the solution
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...