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.
The absolute KOTY = Kata Of The Year !!
Tkx...
Note if I may - in c++ - (I counted and outputed the values for testing)
fixed_tests : 20
random_tests
That could be in the description... (especially the fact that some 64 bits semiprimes will be tested IS actually important for the factorization algorithm...)
(C++)
Is it possible to get the number of tests of each category ?? Timing out @
semiprimes_64_bits
tests.Note: I already think that it's an absolutely excellent kata, BTW.
Still not solved but ... keep trying :-)
OK thanks, saw that you authored a lot of katas...
Moves the ref solution to the private section (learnt a thing there), also implemented the other ideas.
Note: I'm not confortable (at all) with range v3 and fmt/... with C++17 clang (therefore pretty comfortable with c++20/23 stuff ) but with clang there is a hell of a lot of shi.. to include...
You #4 is indeed nice !
:-)
C++ translation waiting for comments or ... approval :-)
Can't figure out why the description says
and you must verify whether any pairs of primes satisfy the condition.
?IMHO this should be removed.
Somewhere in the description we may find the concept of unordered pair or pair set , as it is not clear wether you expect ordered or unordered pairs.
See https://en.wikipedia.org/wiki/Ordered_pair or https://en.wikipedia.org/wiki/Unordered_pair
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
(in C++) Did succeed, but with a kind of brute force solution...
I submit but just for you to see that... it is REALLY basic !!\
IMHO tests are not sufficient and or robust enough, for from times to times (depending on the values of the random tests) the solutions passes or does not pass. Depends of course of the 'factorization' algorithm; roughly passes 90% of the time. Could be an issue but I just mark it as a suggestion :-)
:-)
in C++, there is a warning in the main =>
IMHO you should you fix that ?
This comment is hidden because it contains spoiler information about the solution
😁 Always a pleasure to fork your ✨ solutions, dear...
In C++.
Oups... does it really takes 8secs just to compile ???
Loading more items...