We know that prime numbers are positive integers that have exactly two distinct positive divisors. Similarly, we'll call a positive integer t Т-prime, if t has exactly three distinct positive divisors.
You are given an array of n positive integers. For each of them determine whether it is Т-prime or not.
3 4 5 6
YES NO NO
n,xi範圍與原題不同!
測試資料較大!請使用較快的輸出入!
2012/10/11 加強測資!
| ID | User | Problem | Subject | Hit | Post Date |
| 17917 |
|
a505 | 1383 | 2019-06-02 14:21 |