結果
問題 |
No.713 素数の和
|
ユーザー |
|
提出日時 | 2021-12-06 14:38:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 188 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-07 09:05:21 |
合計ジャッジ時間 | 968 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | AC * 2 RE * 4 |
ソースコード
N = int(input()) A = [0] * (N+1) S = 0 for i in range(2,N+1): if A[i] == 0: S += i j = 2 while i + j <= N: A[i * j] = 1 j += 1 print(S)