"Mario Markus, a physicist from the Max Planck Institute for Molecular Physiology in Germany has come up with a new theory. It's related to periodic predators. Suppose there are some predators (like birds, and the Cicada Killer Wasp) that attack cicadas, and that the cicadas emerge every 12 years. Then the predators that come out every two years will attack them, and so will the predators that come out every 3 years, 4 years and 6 years. But according Mario Markus, "if the cicadas mutate to 13-year cycles, they will survive.""There's a theory that cicadas use prime numbers to protect themselves from fungi, but I understand that theory is in dispute.
http://www.abc.net.au/science/articles/2001/11/27/421251.htm?site=science/greatmomentsinscience