結果

問題 No.36 素数が嫌い!
ユーザー yaoshimax
提出日時 2015-02-21 16:42:40
言語 Python2
(2.7.18)
結果
AC  
実行時間 2,158 ms / 5,000 ms
コード長 219 bytes
コンパイル時間 409 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-27 00:16:27
合計ジャッジ時間 8,563 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

# I hate Math!!!!!!
N=int(raw_input())
cnt=0
p=2
while p*p<=N:
    #print p
    while N%p==0 and N!=p:
        cnt+=1
        N/=p
    if cnt >= 2:
        break
    p+=1
if cnt>=2:
    print "YES"
else:
    print"NO"

0