結果

問題 No.36 素数が嫌い!
ユーザー szkhts
提出日時 2023-04-02 08:07:51
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-24 19:33:59
合計ジャッジ時間 4,391 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 17 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())

def is_prime(n):
    if n <= 1:
        return False

    for i in range(2, int(math.sqrt(n)) + 1):
        if n % i == 0:
            return False

    return True

if is_prime(n):
    print("NO")
else:
    print("YES")
0