0

Vyxal, ML, 6 bytes
ƛKL\#*
Explained
ƛKL\#*
ƛ # Over the range [1, input] do the following:
KL # Push the length of the list of that number's divisors
\# # Push '#'
* # And multiply the two together, repeating the "#"
# Automatically close the map and then use ...