Flexi Says: The method of obtaining energy for life processes varies across different species of prokaryotes. Some prokaryotes, such as cyanobacteria, can produce sugar molecules using energy from sunlight and inorganic matter by the process of photosynthesis. Some prokaryotes produce food using energy-rich molecules from the environment, such as hydrogen sulfide in deep sea vents. Other prokaryotes are heterotrophic, and take in organic molecules from other organisms to use as a source of energy.