would probably have been less than 100 lines in python but i wanted to learn typescript
amount:
max element number:
dimension:
type:
reveal answers
math LaTeX format