SCU 2007 warmup contest 28

A: Semi-prime H-numbers