結果
| 問題 |
No.2750 Number of Prime Factors
|
| コンテスト | |
| ユーザー |
splash9494
|
| 提出日時 | 2024-05-13 00:02:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 218 bytes |
| コンパイル時間 | 330 ms |
| コンパイル使用メモリ | 82,296 KB |
| 実行使用メモリ | 54,104 KB |
| 最終ジャッジ日時 | 2024-12-20 09:17:03 |
| 合計ジャッジ時間 | 2,261 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 10 WA * 9 |
ソースコード
N = int(input())
n = p = 2
ps = []
while n < N:
if any((p % i) == 0 for i in range(2, p+1) if i != p):
p += 1
continue
else:
ps.append(p)
n *= p
p += 1
print(len(ps))
splash9494