15-110 Sections G-J / Spring 2010 / Quiz 3
3 Parts / 6 to 7 Minutes Per Part
(One Part per Day)
Part 1) Write isPrime and nthPrime.
Part 2) Write isPerfect and nthPerfect.
(Students were provided with a brief description of perfect numbers -- that is,
positive integers that equal the sum of their proper divisors.)
Part 3) Write isOddish and nthOddish. (Students were provided with a brief description of "oddish" numbers (an invented term) -- that is, positive integers that contain more odd digits than even digits.)