結果

問題 No.36 素数が嫌い!
ユーザー yaoshimax
提出日時 2015-02-21 16:38:22
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 21:44:10
合計ジャッジ時間 10,146 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 24 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

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

0