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.
This kata is not about primes but about "relatively prime". Where do you read anything about 1 considered a prime in this kata? Description only talks about factors and divisors.
One cannot be called a prime number, since a prime has 2 divisors, and one is 1. The number 1 is not classified as either simple or composite
Here 1 is considered a prime number
PauL didn't won:
PauL ended in the 4th place.
please explain the condition of the task
If it is clear where the winning numbers come from, then why in the 2nd example, with n = 4, Paul won
approved
Please read two posts below yours.
there is an error with examples here. Try to do it with your hands with 810,812 and 818. Here they say that 833 will be done in one iteration. Before work, we will receive 64 + 9 + 9 = 82. In the first iteration there will be 68. 68 != 82 And what is the fun of such examples?