Screw Sean Connery ... 'cause this video might be the coolest that ever happened on "The Rock" -- with the Harlem Globetrotters hittin' some crazy trick shots Thursday on Alcatraz!
The hoop legends hit up the legendary prison early this morning (they're in town until Jan. 25th) -- and after dribbling around the cells ... they set up a hoop outside of the clink and fired some shots from a nearby boat.
Bang. Bang. Bang.
These guys are good.