ZOJ Problem Set - 2723
Prime Number Definition
Semi-Prime Number Definition
Your task is just to determinate whether a given number is a semi-prime number.
There are several test cases in the input. Each case contains a single integer N (2 <= N <= 1,000,000)
One line with a single integer for each case. If the number is a semi-prime number, then output "Yes", otherwise "No".
Author: LIU, Yaoting
Source: Zhejiang University Local Contest 2006, Preliminary