Some cicadas spend 13 or 17 years underground, then emerge all at once — prime-numbered cycles that make it hard for any predator to sync up with the…
The prime-number timing is a defense mechanism that evolved without anyone doing the math — the bugs just outlasted every predator that tried to sync up.