the code is a mathematics-based documentary for bbc two presented by marcus du sautoy, beginning on 27 july 2011 and ended on 10 august 2011. each episode covers a different branch of mathematics. as well as being a documentary, "the code" is also a series of online challenges forming a treasure hunt, with clues to finding the treasure being included in the episodes, online games and other challenges.