Fermat's Room (2007)

Mystery
Thriller

Four mathematicians are imprisoned in a shrinking room; with the walls closing in, they must try anything to escape this fatal puzzle.