Similar question: Given that p, p + 2, p + 6, p + 8 and p + 14 are all prime, find p.
Step 1: Hmmmm, 5 fits the bill, since 5, 7, 11, 13 and 19 are all prime.
Step 2: Are there other possibilities? Well, if p leaves a remainder of x when divided by 5, then the remainders of p + 2, p + 6, p + 8 and p + 14 when divided by 5 will be x+2, x+1, x+3 and x+4 modulo 5. So, one of p, p + 2, p + 6, p + 8 and p + 14 has to be a multiple of 5, and since they are all prime, one of them has to be 5. We have seen that setting p = 5 works; setting p + 2 = 5 implies that p + 6 = 9, which is not prime. And of course, p + 6, p + 8 and p + 14 cannot be 5, so p = 5 is the only solution.
Claude