finished 1.33. Used prime function from earlier exercise.