Is 1,040 a Twin Prime?

No

1040 is not prime

1040  = 24*51*131