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.
closing to keep a single issue
Fixed
There is not enough constraint here
"EqlS :: Equal n m -> Equal (S n) (S m)"
and
|=| is not covering all cases
No, try the previous algorithm. It will time out.
The logic behind this is to greatly reduce numbers looped, sometimes up to one fourth, especially on large numbers. When I get a divisor I get its complement. When I reach a number that is already in the list, I know that I have already reached the second side of divisors, thus I have got everything. I can get out of the loop after that. For example, let's see how 12 is processed:
Actually I can optimize it further by using
fromkeys
This comment is hidden because it contains spoiler information about the solution
No reason. I had a mild malfunction and thought nub works in the same way as group. Obviously, that wouldn't make sense, my mistake.