Nilpotency of Lie algebras