Factor Trees
Click anywhere above and type a number. Press enter to make a new tree. Refresh to start over.
More trees for tonight! I’m running quite late tonight, so this code may be somewhat buggy. The idea is that you can make a forrest of factor trees, and possibly learn a bit of math. The factorization starts by trying to use the integer closest to the square root and then increments till it finds something that works. The result is checked for being a prime and the process is repeated. The “wind” is based on a few sin’s and cos’s superimposed on each other. Enjoy!