結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-02 14:57:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 166 ms / 5,000 ms |
| コード長 | 229 bytes |
| コンパイル時間 | 201 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 59,192 KB |
| 最終ジャッジ日時 | 2024-07-16 08:03:00 |
| 合計ジャッジ時間 | 2,971 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
N = int(input())
count = 0
i = 2
while i * i <= N:
if N % i == 0:
while N % i == 0:
count += 1
N //= i
i += 1
if N != 1:
count += 1
if count <= 2:
print('NO')
else:
print('YES')