res = [] repeat with i = 1 to 100 if isSemiPrime(i) then res.add(i) end repeat put res