Hair-like structure attached to a cell, used for locomotion in many protists and prokaryotes. The prokaryotic flagellum differs from the eukaryotic flagellum in that the prokaryotic flagellum is a solid unit composed primarily of the protein flagellin, while the eukaryotic flagellum is composed of several protein strands bound by a membrane and does not contain flagelli