15-110 Sections G-J / Spring 2010 / Quiz 4

 

Part 1)     [20pts] Written Quiz in Class (8 minutes)

Write isPeculiar and nthPeculiar. 
(Students were provided with a brief description of "peculiar" numbers (an invented term) -- that is, positive integers that have only odd factors (that is, they have no even factors).)

 

Part 2)  [80pts] Programming Quiz in Recitation (25 minutes)