Find the number of all nilpotent groups of order $<60$, up to isomorphism - i.e. for every $n \in \{1,2,\ldots,59\}$, find the number of nilpotent groups up to isomorphism.
We know that
Result 1: Every abelian group is nilpotent.
Result 2: Every finite $p$-group is nilpotent.
Hence, all abelian groups of orders $1$ to $59$ are nilpotent. Additionally, all groups of orders $2,3,4,5,7,8,9,11,13,16,17,19,23,25,27,29,31,32,37,41,43,47,49,53,59$ are nilpotent, due to Result 2.
So the only groups left to worry about, are non-abelian groups of non-prime (or prime power) order. This feels really random, and cumbersome. Is there a systematic approach to listing all the desired nilpotent groups? Thanks!