A pyramid is a polyhedron whose base is a polygon and whose lateral faces are triangles with a common vertex.
A prism is a polyhedron whose base is a polygon (of any number of sides) and lateral faces are triangles with a common vertex.