The first principles study on PtC compound