結果

問題 No.36 素数が嫌い!
ユーザー togatogatogatoga
提出日時 2015-09-02 10:25:19
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 222 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 6,652 KB
実行使用メモリ 814,964 KB
最終ジャッジ日時 2023-09-25 21:55:58
合計ジャッジ時間 2,101 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 11 ms
5,932 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 MLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
cnt = 0
for x in range(2, N):
    if (x * x > N):
        break
    while (N % x == 0):
        N /= x
        cnt += 1
if (N != 1):
    cnt += 1
if (cnt == 0 or cnt == 1):
    print "NO"
else:
    print "YES"
0