intrepidbird / gauss

Discord bot written in Python with mathematical functions and applications that can be applied to the real world or competitions
https://intrepidbird.github.io/gauss/
MIT License
10 stars 11 forks source link

Optimized factor function #16

Closed Prathamesh-007 closed 1 year ago

Prathamesh-007 commented 1 year ago

Factor function required a time complexity of O(n). But it has now been optimized to O(sqrt(n)). Testing required

intrepidbird commented 1 year ago

@Prathamesh-007 could you also change the main.py in the mathbot folder? Thanks.