Elliptic flow in nuclear collisions at ultrarelativistic energies available at the CERN Large Hadron Collider