結果

問題 No.36 素数が嫌い!
ユーザー leno
提出日時 2017-08-20 02:57:34
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 406 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-10-14 16:38:10
合計ジャッジ時間 28,123 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 17 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import math


def prime_decomposition(N):
    M = N
    i = 2
    table =[]
    while i * i <= N:
        while M % i == 0:
            M /= i
            table.append(i)
        i += 1
    if M > 1:
        table.append(M)
    return table


if __name__ == '__main__':
    N = int(input())
    if len(prime_decomposition(N)) == 1:
        print('NO')
    else:
        print('YES')
0