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 加強測資!
編號 | 身分 | 題目 | 主題 | 人氣 | 發表日期 |
17917 | stu995106@ho ... (原來可以改暱稱) | a505 | 1129 | 2019-06-02 14:21 |