Is 5,840 Prime?

No

5840  = 24*51*731