- Your task is to build a correctly-spaced aesthetically pleasing divisor tree for input
n
, wheren
is a positive integer greater than 1. - Your output may contain leading and trailing spaces and leading and trailing newlines, but mostmust otherwise conform to the spacing rules given above.
- Your output is allowed to be: text art, an image (other formats to be added, if needed).
- For images, make sure your tree's nodes are well-spaced, and that nodes at the same height in the tree are at the same height in the image.
- This is code golf. Least number of bytes (or equivalent) wins.
Credit to Weeing If First (StewieStewie Griffin) for thinking of this idea, and many thanks to Peter Taylor, Martin Ender, Mego, and Eᴀsᴛᴇʀʟʏ Iʀᴋ for their help in rewriting the specification. As usual, any suggestions or corrections are much appreciated. Good luck and good golfing!