結果

問題 No.36 素数が嫌い!
ユーザー yuki2006
提出日時 2014-10-07 18:27:09
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 205 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-12-30 07:28:29
合計ジャッジ時間 101,176 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7 WA * 4 TLE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

_N = int(raw_input())
c = 2
N = _N
count = 0

while N > 1 and c < _N:

    while N % c == 0:
        N /= c
        count += 1
    c += 2 if c > 2 else 1

if count > 1:
    print "YES"
else:
    print "NO"
0