I am studying Lie Algebras and after saw Engel's theorem my professor said that one can use Engel's theorem to compute the center of the following four Lie Algebras
$$ \mathfrak{gl}_{n}(\mathbb{F}),\mathfrak{sl}_{n}(\mathbb{F}), \mathfrak{so}_{n}(\mathbb{F}) \mbox{ and } \mathfrak{sp}_{n}(\mathbb{F}) $$
So I would like to ask if someone knows how to apply Engel's theorem in this case. I would be happy with any solution which find the center of the last two Lie Algebras.