Millimeter and submillimeter observations of 3C 273