Iran could quickly ramp up its nuclear activities now that President Donald Trump has pulled out of the 2015 international agreement designed to curtail them. But experts and former officials differ over how long Tehran would need to build a bomb.

Some, pointing to Iran’s slow past progress and independent analyses, believe Iran would need several years to produce a nuclear weapon. Others think Tehran could build one in little over a year.

Iranian...