Search a number
semiprime  and  trimorphic n.

First numbers that belong to both sets:

4, 6, 9, 25, 49, 51, 249, 501, 749, 5001, 6249, 8751, 18751, 500001.