結果

問題 No.3023 Utility is Max?
ユーザー gew1fw
提出日時 2025-06-12 21:08:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 51,712 KB
最終ジャッジ日時 2025-06-12 21:09:43
合計ジャッジ時間 2,481 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input().strip())
if n < len(['a', 'a']):
    print("NO")
else:
    is_prime = True
    i_list = ['a', 'a']  # Represents 2
    while len(i_list) < n:
        i = len(i_list)
        if n % i == 0:
            is_prime = False
            break
        i_list.append('a')
    print("YES" if is_prime else "NO")
0