Numbers from 1 to 10 are printed on a fair 10-sided dice. The dice is rolled 4 times. Let p be the probability that 3 prime numbers or 3 composite numbers are rolled consecutively. Find 10000p.