結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
tnoda_
|
| 提出日時 | 2015-07-31 17:22:56 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 247 bytes |
| 記録 | |
| コンパイル時間 | 130 ms |
| コンパイル使用メモリ | 77,336 KB |
| 最終ジャッジ日時 | 2025-12-03 15:59:27 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 WA * 7 |
ソースコード
def factor(x):
i = 2
while i * i < x:
if x % i == 0:
return i
i += 1
return -1
N = input()
p = factor(N)
if p < 0:
print('NO')
quit()
p = factor(N)
if p < 0:
print('NO')
quit()
print('YES')
tnoda_