Production of cc¯ and bb¯ Quark Pairs in pp Collisions at Energies of Experiments at the Large Hadron Collider