Via Wikipedia:
The Man Who Knew Infinity is a 2015 British biographical drama film based on the 1991 book of the same name by Robert Kanigel. The film stars Dev Patel as the real-life Srinivasa Ramanujan, a mathematician who after growing up poor in Madras, India, earns admittance to Cambridge University during World War I, where he becomes a pioneer in mathematical theories with the guidance of his professor, G. H. Hardy (played by Jeremy Irons).