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.
Made some adjustments and approved.
See the new description
Okey
The description still does not say it expects an array of AP numbers, even though the example assumes you do, but without context it makes no sense why
15(7+8)
is part of the answer forstart=7
but27(10+17)
is not.Every integer >0 is a natural number. Did you mean something like regular prime numbers?
Changed, take a look.
I have found this kata on the List of Java Kata to Update. I updated it to Java 17, changed /home/codewarrior/solution.txt to /workspace/solution.txt and I have also updated the test to JUnit5.
Take a look to the Fork, I have done my best.
start=1
has to be present in the fixed/sample tests (with appropriate output)the ref solution is wrong:
if 1 is in the range, all numbers are divisbile by it => no coprime numbers
performance
tag (but I suspect the constraint isn't properly enforcedYour example just adds more confusion I'm afraid.
Added new description with a step to step example
Added
Changed
The result is the set of prime (in the problem definition) numbers that can be decomposed from the sum of two distinct prime numbers. These should be in the problem description.(not true forstart
0 or 1, but is the answer for every number greater than that)There are cases where the random tests test for
start = 0
This should have a performance tag.
I have no idea how could this problem work for start 0 or 1, maybe put one of them in the sample tests?
The task seems really confusing.
It would help a lot if you showed how
3, 50
corresponds to[7, 11, 17, 23, 41, 47]
or some smaller toy example if that's too complicated.It is still extremely unclear how the list of numbers are derived. You definitely need to provide a step-to-step example showing how it is derived.
Loading more items...