結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
nbisco
|
| 提出日時 | 2016-04-17 23:31:54 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 1,953 ms / 5,000 ms |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 428 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-03-14 01:04:46 |
| 合計ジャッジ時間 | 26,952 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
#!/usr/bin/env python3
#fileencoding: utf-8
from math import sqrt
M = N = int(input())
count = 0
i = 2
while M >= i*i:
while N % i == 0:
N //= i
count += 1
i += 1
if N > 1:
count += 1
print("YES" if count >= 3 else "NO")
nbisco