Prime numbers are found hidden in nature, but humans have made spectacular use of them, writes mathematician Marcus du Sautoy.
Ever since humans evolved on this planet we have been trying to make sense of the world around us.
We have attempted to explain why the world looks and behaves the way it does, to predict what the future holds. And in our search for answers we have uncovered a code that makes sense of the huge complexity that confronts us - mathematics.
By translating nature into the code of numbers we have revealed hidden structures and patterns that control our environment.
But not only that. By tapping into nature's code we have been able to change our surroundings, have built extraordinary cities, and developed amazing technology that has resulted in the modern world.
Buzzing quietly beneath the planet we inhabit is an unseen world of numbers, patterns and geometry. Mathematics is the code that makes sense of our universe.
In the forests of Tennessee this summer, part of this code literally bursts from the ground. Nashville is usually home to the sound of blue grass and honky tonk.
But every 13 years, the banjos and basses get drowned out for six weeks by the chorus of an insect that has fascinated me ever since I became a mathematician. Only found in the eastern areas of North America, this cicadas survival depends on exploiting the strange properties of some of the most fundamental numbers in mathematics - the primes, numbers that are only divisible by themselves and one.
The cicadas appear periodically but only emerge after a prime number of years. In the case of the brood appearing around Nashville this year, 13 years. The forests have been quiet for 12 years since the last invasion of these mathematical bugs in 1998 and the locals won't be disturbed by them again until 2024.
This choice of a 13-year cycle doesn't seem too arbitrary. There are another two broods across north America that also have this 13-year life cycle, appearing in different regions and different years. In addition there are another 12 broods that appear every 17 years.
You could just dismiss these numbers as random. But it's very curious that there are no cicadas with 12, 14, 15, 16 or 18-year life cycles. However look at these cicadas through the mathematician's eyes and a pattern begins to emerge.
Because 13 and 17 are both indivisible this gives the cicadas an evolutionary advantage as primes are helpful in avoiding other animals with periodic behaviour. Suppose for example that a predator appears every six years in the forest. Then a cicada with an eight or nine-year life cycle will coincide with the predator much more often than a cicada with a seven-year prime life cycle.
These insects are tapping into the code of mathematics for their survival. The cicadas unwittingly discovered the primes using evolutionary tactics but humans have understood that these numbers not just the key to survival but are the very building blocks of the code of mathematics.
Every number is built by multiplying primes together and from numbers you get mathematics and from mathematics you get the whole of science.
But humans haven't been content simply with observing the importance of these numbers to nature. By understanding the fundamental character of these numbers and exploring their properties humans have literally put them at the heart of the codes that currently protect the world's cyber-secrets.
The cryptography that keeps our credit cards secure when we shop online exploits the same numbers that protect the cicadas in North America - the primes.
Every time you send your credit card number to a website your are depending on primes to keep your details secret. To encode your credit card number your computer receives a public number N from the website, which it uses to perform a calculation with your credit card number.
This scrambles your details so that the encoded message can be sent across the internet. But to decode the message the website uses the primes which divide N to undo the calculation. Although N is public, the primes which divide N are the secret keys which unlock the secret.
The reason this is so secure is that although it is easy to multiply two prime numbers together it is almost impossible to pull them apart. For example no one has been able to find the two primes which divide the following 617-digit number:
The primes are the atoms of the arithmetic. The hydrogen and oxygen of the world of numbers.
But despite their fundamental character they also represent one of the greatest enigmas in mathematics. Because as you count through the universe of numbers it is almost impossible to spot a pattern that will help you to predict where the next prime will be found.
We know primes go on for ever but finding a pattern in the primes is one of the biggest mysteries in mathematics. A million-dollar prize has been offered to anyone who can reveal the secret of these numbers.
Despite having cracked so much of nature's code the primes are as much an enigma today as when the cicadas in the forests of Tennessee first tapped into them for their evolutionary survival.