結果

問題 No.713 素数の和
ユーザー liny_tailliny_tail
提出日時 2020-09-21 18:52:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 200 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 7,952 KB
最終ジャッジ日時 2023-09-06 17:51:59
合計ジャッジ時間 3,175 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 652 ms
7,952 KB
testcase_01 WA -
testcase_02 AC 15 ms
7,844 KB
testcase_03 AC 187 ms
7,752 KB
testcase_04 AC 653 ms
7,844 KB
testcase_05 AC 49 ms
7,864 KB
testcase_06 AC 16 ms
7,812 KB
testcase_07 AC 16 ms
7,944 KB
testcase_08 AC 58 ms
7,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input().strip())

factor = [2]

for i in range(2, N+1):
  for j in range(2, i + 1):
    for k in factor:
      if j % k == 0:
        break
    else:
      factor.append(j)
print(sum(factor))
0