SICP Exercise 1.22: Timed Prime Test