A search for standard model production of four top quarks (t (t) over bart (t) over bar) is reported using events containing at least three leptons (e, mu) or a same-sign lepton pair. The events are produced in proton-proton collisions at a center-of-mass energy of 13 TeVat the LHC, and the data sample, recorded in 2016, corresponds to an integrated luminosity of 35.9 fb(-1). Jet multiplicity and flavor are used to enhance signal sensitivity, and dedicated control regions are used to constrain the dominant backgrounds. The observed and expected signal significances are, respectively, 1.6 and 1.0 standard deviations, and the t (t) over bart (t) over bar cross section ismeasured to be 16.9(-11.4)(+13.8) fb, in agreement with next-to-leading-order standard model predictions. These results are also used to constrain the Yukawa coupling between the top quark and the Higgs boson to be less than 2.1 times its expected standard model value at 95% confidence level.