Prime factors of 6 are 2 and 3.
Therefore the dice throws that yield 6 as score are 1,2&3 and it's permutations and 1,1&6 and it's permutations. That is
P(1,2,3) = 1 / 216 and P(1,2,3 with all posibilities) = 6 / 216 = 1 / 36. --1
P(1,1,6) = 1 / 216 and P(1,1,6 with all posibilities) = 3 / 216 = 1 / 72. --2
{ The events where the 1s are swapped are not counted as they represent the same event }
Required probability = 1 + 2 = 1 / 24.