結果
| 問題 | No.713 素数の和 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-24 11:45:55 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 2,000 ms |
| + 445µs | |
| コード長 | 282 bytes |
| 記録 | |
| コンパイル時間 | 1,449 ms |
| コンパイル使用メモリ | 95,956 KB |
| 実行使用メモリ | 82,756 KB |
| 最終ジャッジ日時 | 2026-09-03 06:04:52 |
| 合計ジャッジ時間 | 3,322 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
def isp(x):
if x <= 1:
return False
if x == 2:
return True
for i in range(2, int(x ** 0.5) + 2):
if x % i == 0:
return False
return True
N = int(input())
ans = 0
for i in range(2, N + 1):
if isp(i):
ans += i
print(ans)