I would like to have a simple criterion for the numbers $n$ with the property that every group of order $n$ is nilpotent.
If $n$ is a prime power, it is clear that $n$ has this property.
If $n$ is an abelian number (every group of order $n$ is abelian) , then the property is satisfied as well.
So, let's omit those cases.
Which numbers $n$ satisfy the following conditions ?
- $n$ is not a prime power.
- There is at least one non-abelian group of order $n$.
- Every group of order $n$ is nilpotent.
The smallest such numbers are $135$, $297$ and $459$, all having the form $3^3p$ , $p$ prime , $p>3$.
The desired sequence does not contain even numbers because the dihedral group $D_{2n}$ is not nilpotent for $n\ge 3$ , unless $2$ is a power of $2$. (Is there an easy proof for that ?)