Hi Melody: Your question to the poster is spot on! I think this question is meant as computer coding assignment. There is, however, a specific formula, from Mathworld, that is formulated just for this kind of problem and it comes from this link: http://mathworld.wolfram.com/Dice.html [Equation 10]. We can use it to calculate the totals of 6 primes in question and sum them up. Here is the formula in question: S=17; N=7; sumfor(k, 0, ((S - N)/6), ((-1)^k * (N nCr k) * (S - 6*k - 1) nCr (N - 1))
Alan: I'm even more ignorant as to how this formula was derived in the first place, to specifically compute dice sums!!.
17 = 6,538, 19 =12,117, 23 =22,967, 29 =15,267, 31 =9,142, 37 = 462.
GRAND TOTAL =6,538 + 12,117 + 22,967 +15,267 + 9,142 + 462 = 66,493 / 6^7 = 23.75 % probability of getting a prime number.