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.
@PBearson, your solution is wrong, because you need to check prime factors in range(start, end+1), not in range(start, end), because in Python range works as
[start, end)
.no random tests
I think you either mix
factor
withdivisor
, or your calculation is wrong:Let's take
i = 8
however, if I use the largest divisor:
But the 2nd approach fails for your fixed tests 916 and 1521...