結果

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

ソースコード

diff #

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

while N > 1 and c * 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