Is 5,017 a Twin Prime?

No

5017 is not prime

5017  = 291*1731