結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-08-11 03:14:06 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 2,176 ms / 5,000 ms |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 512 ms |
| コンパイル使用メモリ | 20,704 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-03-14 02:05:09 |
| 合計ジャッジ時間 | 11,081 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
# your code goes here
#prime
N=int(input())
C=0
i=2
while C<2 and i*i<=N:
if N%i==0:
C+=1
N//=i
while C<2 and N%i==0:
C+=1
N//=i
i+=1
if C==2 and N>1:
print("YES")
else:
print("NO")
rocoder