Cambridge professor said she is ‘using the same bit of math that codebreaker used to crack the Enigma machine’ to give her an edge on BBC show