More than 300,000 students took the Advanced Placement calculus exam last year. Only 12 earned perfect scores.