結果

問題 No.36 素数が嫌い!
ユーザー nebukuro09
提出日時 2016-10-27 14:13:53
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 1,652 ms
コンパイル使用メモリ 76,288 KB
実行使用メモリ 76,544 KB
最終ジャッジ日時 2024-11-24 04:55:04
合計ジャッジ時間 7,108 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

N = input()
rootN = int(math.sqrt(N))
i = 2
c = 0
while i <= rootN:
    while N % i == 0:
        N /= i
        c += 1
    if c > 2:
        print 'YES'
        exit()
    i += 1
print 'NO'
0