Are there any good movies involving mathematics or probability? Can you suggest some good movies which involve math, probabilities etc? One example is 21. I would also be interested in movies that involve algorithms (e.g. text decryption). In general "geeky" movies with famous scientific theories but no science fiction or documentaries. Thanks in advance!
 A: The Cube
A: 21 - based on the book Bringing Down the House (MIT Blackjack team)
Near the beginning they discuss the Monty Hall Problem.  However after that there isn't much actual math/probability.
A: I have not seen this yet, but it seems somewhat geeky:
Fermat's Room
A: There are several movie versions of Flatland. And there's The Great $\pi$/e Debate.
A: Early in The Social Network begins with a one night hackathon where Mark Zuckerberg uses the Elo rating system algorithm to

... create a website that rates the attractiveness of female students
  when compared to each other. ... in a few hours, using an algorithm for
  ranking chess players supplied by his best friend, Eduardo Saverin, he
  creates a website called "FaceMash," where students can choose which of
  two girls presented at a time is more
  attractive.

However, much of the rest of the movie is devoted to episodes of hacking, corporate politics, lawsuits, escapades, Zuckerberg's interpersonal problems, etc.  But, I found it quite fascinating, overall.  A great geek movie.
A: Good Will Hunting is also a classic. Discrete mathematics at MIT.
A: The documentary about Andrew Wiles proof of Fermat's Last Theorem is fantastic:
http://www.pbs.org/wgbh/nova/proof/ 
Available on youtube:
http://www.youtube.com/watch?v=7FnXgprKgSE
A: BBC Horizon - The Bible Code. It shows, that whatever codes people found  in Bible, so far they didn't prove to be statistically significant.
A: The Man Who Knew Infinity is based on the life of Srinivasa Ramanujan.
It's a beautiful movie directed by Matthew Brown. Mathematicians Manjul Bhargava and Ken Ono collaborated on the film.
A: Pi
A: 'A Beautiful Mind' naturally has a bit of game theory in it.
A: MONEYBALL! 
It's a movie where the statisticians win!
This is probably the most inspiring major motion picture about the power of quantitative methods.  (if only because the plot is a little formulaic). And it shows quantitative methods (sabrmetrics) eventually coming to dominate over the backward and untested techniques of the dinosaurs of baseball. 
A: Not a movie, but a TV series:
Numb3rs
A: The mathematical movie database has some great suggestions with over 800 movies (though most tenuously linked to maths) already listed. In the navy, from 1941, is probably my favourite. 
A: N Is a Number: A Portrait of Paul Erdős
A: Proof was pretty good.
A: Rounders. A very watchable drama about poker players. 
http://www.imdb.com/title/tt0128442/
A: There is a published a documentary about Srinivasa Ramanujan whose life, as we know, is tremendously interesting. However, the film is Indian and I haven't actually seen it. I recall an Indian math historian speaking about this film at our university colloquium several years ago. He boasted, "Ben Kingsley was interested in depicting Ramanujan but was turned down for the role because he was only half Indian". As a mixed race individual, I felt a mixture of anger and pity. The latter because they basically turned down the opportunity to make a movie that would attract anyone's attention.
A: Sofia Kovalevskaya - biopic about Russian female mathematician. You don't have too many movies about these folks. One of the recent ones is The Imitation Game about Alan Turing, a British mathematician and computer scientist (allegedly) murdered by his government.
A: Stand and Deliver is a good film about the Bolivian-born math teacher Jaime Escalante. Inspiring! See this commentary
A: 12 angry men (1957, with Henry Fonda): a great film about a decision procedure and the strength of evidences
A: travelling salesman is a good one.
