M=set(range(2,763)) for i in range(2,763): if i in M:M -= set(range(i*2,763,i)) for x in sorted([i*j*k for k in M for i,j in[(i,j)for i in M for j in M if i<j and i*j<382]if j<k and i*j*k<763]):print x

Note that non-ascii characters in the above source code will be escaped (such as \x9f).