Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: if p is the product of the integers from 1 to 32 , inclusive , what is the greatest integer k for which 3 ^ k is a factor of p ?
