340 runs on only 4 or 5 cylinders after backfiring

Did you check the spark plugs while you had em out ?