Is 5,842 Prime?

No

5842  = 21*231*1271