A square is a 2-dimensional number 4: 4=2x2
A hexagon is a 2-dimensional number 6: 6=2x3
A decagon is a 2-dimensional number 10: 10=2x5
The tetrahedron has 2x2=4 faces, 2x2=4 corners and 2x3=6 edges.
The cube has 2x3=6 faces, 2x2x2=8 corners and 2x2x3=12 edges.
The octahedron has 2x2x2=8 faces, 2x3=6 corners and 2x2x3=12 edges. Note that the cube and octahedron are duals, which means they have the same number of edges, and the number of faces on the cube equals the number of corners on the octahedron, and vice versa (the tetrahedron is a "self-dual").
The icosahedron has 2x2x5=20 faces, 2x2x3=12 corners and 2x3x5=30 edges.
The dodecahedron has 2x2x2 faces, 2x2x5=20 corners and 2x3x5=30 edges. The icosahedron and dodecahedron are also duals, which means they have the same number of edges, and the number of faces on the icosahedron equals the number of corners on the dodecahedron, and vice versa.
These relationships weren't lost on the ancient Babylonians who invented the 2x2x3x5=60 minute hour, the 2x2x2x3=24 hour day, and the 2x2x2x3x3x5=360 degree circle (note three 2s, two 3s and one 5!). The reason for using the first 3 prime factors to generate these numbers is logical: it maximizes possible whole number divisions. For example, a 60-minute hour can be evenly divided by 2, 3, 4, 5, 6, 10, 12, 15, 20 and 30.