結果

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

ソースコード

diff #

# I hate Math!!!
import math
N=int(raw_input())
cnt=0
p=1
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