Describe the feature that is being tested/implemented
Refactor function calls to use single function with a boundary=None argument.
if boundary is None, then set it to n
else it should be n/2 or math.floor(math.sqrt(n))
Pre-calculate that boundary value before calling the function to lower the performance cost of the n/2 or squre root of n boundary functions.
List any relations to other issues in this repository or in other repositories
N/A