Statistics for Higher-Dimensional Kloosterman Sums and the Greatest Prime Factor of Integers of the Form a_1a_2\cdots a_{k+1}+1