What are the semiprimes and square numbers that have strictly factors between 30 & 40 whose numbers are between 10000 & 20000?