10 years ago:
This function is a naive, brute force implementation, it is O(n^whatever). Here are a series of very clever algorithms that will be orders of magnitude faster and more efficient, developed over the decades by brilliant people. Learn them and use them.
Now:
Screw it. Don't worry […]