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.
You need not to go from
1
up ton
. You should find an optimal stopping point / upper-boundary where you can obtain all the divisors ofn
.Also, doing
index
in a list is at worst O(N^2) andrange
withinrange
withinrange
is O(N^3), thus your solution times out.list(range(n2))
If you're using a generator expression in a
for
loop you should not turn it into a list. Making a list of size2**200
is not a good idea.