5. Choose several colors from the given six different colors to color the six faces of a cube, with each face being colored with exactly one color, and any two faces sharing a common edge must be colored differently. Then, the number of different coloring schemes is $\qquad$. (Note: If we color two identical cubes and can rotate one of them so that the colors of the corresponding top, bottom, left, right, front, and back faces of the two cubes are the same, then we say that the two cubes have the same coloring scheme.)


5. 230 ways.
(1) Using 6 colors, the division is $\frac{6}{5 \times} \times \frac{4 \times 3 \times 2 \times 1}{6 \times 4}=$ 30 ways;
(3) Using 4 colors, the division is $C_{6}^{4} \cdot C_{4}^{2} \cdot \frac{2 \times 1}{2}=90$ ways;
(4) Using 3 colors, the painting method is $C_{6}^{3}=20$ ways; therefore, the total number of coloring schemes is 230 ways.