I am also not very sure about the x... I'm thinking it has to be something lesser than 15, because you have y = g^x mod p => y = 10^15 mod 317... Shouldn't it be something smaller to compute...?