generate all problems in one execution