Is 787 Prime?

Yes

787  = 7871