結果

問題 No.36 素数が嫌い!
ユーザー togatoga
提出日時 2015-09-02 10:45:51
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 191 bytes
コンパイル時間 557 ms
コンパイル使用メモリ 6,784 KB
実行使用メモリ 818,432 KB
最終ジャッジ日時 2024-07-18 17:47:33
合計ジャッジ時間 2,393 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 4
other AC * 3 RE * 5 MLE * 1 -- * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
cnt = 0
for i in range(2, N):
    if (i * i > N):
        break
    while (N % i == 0):
        cnt += 1
        N /= i
if (N != 1):
    cnt += 1
print "YES" if cnt > 2 else "NO"
0