Chris wants a list of numbers up to that is not divisible by any triangular numbers greater than 1. Here is his algorithm in Python:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
What is the time complexity of the algorithm above?
Details and Assumptions
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
No explanations have been posted yet. Check back later!