solved d6 prim_pq