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.
It should be
When two different Gaussian primes have the same norm, you should specify how to sort them.
The description is still pretty disorienting about safe primes:
Since the valid input we need to handle are safe primes, the description of what a safe prime is should have safe prime as the subject/topic of the sentence, not the other way around (we don't need to know what Sophie Germain primes are anyway for the purpose of the kata, so including it is just noise). For example, this page from top Google search results describes safe prime as this:
Given
n
, presumably? The task might be stated more clearly as a function ( signature ).Reference solution is probabilistic, but the false negative rate is unacceptable. Under the current setup, when tested against 5000-10000 fibonacci numbers, the reference solution fails most of the time. It's even failing the unmodified tests some of the times.
Randoms tests are sometimes passing in negative values. This is not expected (nor are we told how to handle them. It seems that they all expect
false
)Tests are still too weak. I don't know if it is possible to invalidate solutions like this one.
The C# ref sol is invalidated (wrong class name). You should fix it.