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.
Your solution will return 5 numbers instead of 6.
no
a, b are the arguments
a becomes x, the gcd after the loop using Euclid Algo
int(lcm/a) is y, the lcm
What's a, b, x and y there?
350417903 866449540
[11, 27601766442010420] should equal None
I have received that in the test attempts, with several different cases. I believe that in those cases the"None" is wrong
I got this error for sum_limit=2000000:
[402757, 402761, 402763, 402767, 402769] should equal [1091257, 1091261, 1091263, 1091267, 1091269, 1091273]
Shouldn't the first list be the solution since all are prime and sum is 2,013,817? Is the test case wrong?
This comment is hidden because it contains spoiler information about the solution
Hi, i broke my head in this kata but send me fail "Incorrect answer for seconds=15731080: expected '182 days, 49 hours, 44 minutes and 40…"
but in my VSCODE teh answer is right
i dont know what happend
the in-build factorial function of math includes that case
This was a fun kata
not really... hard coding a prime list is not a great idea
This is a shorter version of the already posted Miller-Rabin primality test code
I think this is more correct because the input can be a negative number.
And -1 is not used for plurals