The Code is a mathematics-based documentary television programme 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 included 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.